Skip to content

Make storage key and skip-index expression types independent of type-affecting session settings - #109196

Open
groeneai wants to merge 45 commits into
ClickHouse:masterfrom
groeneai:fix-109181-extended-datetime-key-type
Open

groeneai wants to merge 45 commits into
ClickHouse:masterfrom
groeneai:fix-109181-extended-datetime-key-type

Conversation

@groeneai

@groeneai groeneai commented Jul 2, 2026 •

Copy link
Copy Markdown
Collaborator

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Fixed a Bad cast logical error (for example Bad cast from ColumnVector<UInt32> to ColumnDecimal<DateTime64>) that broke the next INSERT or mutation on a MergeTree table whose ORDER BY, PRIMARY KEY, PARTITION BY or skip index uses a function whose result type depends on a session setting (enable_extended_results_for_datetime_functions, cast_keep_nullable, function_date_trunc_return_type_behavior, geo_distance_returns_float64_on_float64_arguments, function_json_value_return_type_allow_nullable, least_greatest_legacy_null_behavior, allow_lossy_numeric_supertype, use_variant_as_common_type, array_count_legacy_uint32_result, to_start_of_interval_preserves_argument_type), after any metadata-changing ALTER ran with that setting at a different value. After such an ALTER that changes columns, min/max of the key answered by the implicit minmax_count projection no longer return wrong values. Also fixed an ORDER BY h3ToGeo(...) key silently exchanging its two tuple elements after such an ALTER ran with a different h3togeo_lon_lat_result_order (the key type stays Tuple(Float64, Float64), so nothing throws, but the on-disk primary index is then reloaded with latitude and longitude swapped), and the same for a geoToH3(...) key under a different geotoh3_argument_order. On the read side, a query that sets h3togeo_lon_lat_result_order, geotoh3_argument_order, geo_distance_returns_float64_on_float64_arguments or least_greatest_legacy_null_behavior differently from the server no longer uses a primary key, partition key, skip index, read-in-order or the implicit minmax_count projection over h3ToGeo, geoToH3, geoDistance, greatCircleDistance, greatCircleAngle, or least/greatest with a nullable argument, which previously silently pruned away the matching rows, returned mis-ordered rows or returned the stored values instead of the session's. The same applies to a key function whose result type the query changes with one of the type-affecting settings above, for example WHERE toUInt32OrDefault(x) IS NULL under cast_keep_nullable = 1 no longer loses the row with NULL, and SAMPLE no longer loses it either. FINAL over such a key is not covered here; #120058 fixes it.

Closes: #109181

Description

KeyDescription::data_types is recomputed in whatever context runs CREATE/ALTER, so a metadata-changing ALTER (even MODIFY COMMENT) run with a type-affecting setting flipped changes the in-memory key type, while the storage keeps producing the key column in its own context. The primary-index writer then aborts with Bad cast ... on the next INSERT or mutation, and the table stays broken until a metadata reload:

CREATE TABLE t0 (c1 Date, c2 DateTime64) ENGINE = MergeTree() ORDER BY (toStartOfTenMinutes(c2));
SET enable_extended_results_for_datetime_functions = 1;
INSERT INTO TABLE t0 (c2, c1) VALUES ('2118-08-18 18:05:25', '1998-10-21');
ALTER TABLE t0 CLEAR COLUMN c1;

Fix: analyze key and skip-index expressions with every enumerated type-affecting setting pinned to the server settings baseline, via the new createKeyExpressionContext at the four key and skip-index derivations and in the implicit minmax_count projection, so the key type matches what a metadata reload resolves; toStartOf*Extended (#108002) still declares an intentionally extended key. A key re-analyzed in the query context at read time must not be canonicalized, or validation accepts what the runtime filter breaks, so getKeyFromAST takes canonicalize_key_types, false for the parallel_replicas_custom_key validator and hive-style partitioning. The sampling key is canonicalized, and the SAMPLE filter is analyzed with createKeyExpressionContext as well, so a NULL row no longer falls out of every sample under cast_keep_nullable = 1.

Four settings change a key function's value rather than its type (h3togeo_lon_lat_result_order, geotoh3_argument_order, geo_distance_returns_float64_on_float64_arguments, and least_greatest_legacy_null_behavior for least/greatest over a nullable argument): a query that set one differently from the server pruned rows the runtime filter keeps (measured). getKeySubexpressionsWithSessionDependentValues names the key subexpressions computed from them, also through lambda bodies; KeyCondition hides them (so force_primary_key raises INDEX_NOT_USED), buildIndexes refuses a skip index of any family over them, requestReadingInOrder refuses such a prefix, and the implicit minmax_count projection is skipped when the query needs min/max of its first primary key column or a partition value that is one of them.

The settings that change a key function's type diverge at read time too, since another type means another value for some rows: under cast_keep_nullable = 1, WHERE toUInt32OrDefault(x) IS NULL over ORDER BY toUInt32OrDefault(x) was pruned to nothing. Such functions cannot be listed by name, so when the session sets a type-affecting setting differently from the server, getKeySubexpressionsWithSessionDependentValues resolves every function of the key again in the session over the stored argument types and also names the subexpressions whose type differs from the stored one.

Not covered: the FINAL layer split rebuilds its range filter from the key AST in the query session; #120058 fixes that at the source. Also not covered: a qualified nullable parallel_replicas_custom_key loses the NULL row with no session setting involved, which is tracked in #133393.

Notes for reviewers: compatibility, and the cast_keep_nullable carrier from BuzzHouse

A table declared with e.g. ORDER BY toStartOfTenMinutes(dt64) under enable_extended_results_for_datetime_functions = 1 never had a persistable DateTime64 key anyway: the type reverts to DateTime on restart, and the on-disk primary index is always written with the baseline type. So this makes an already-inconsistent state consistent rather than removing a working configuration.

MasterCI BuzzHouse (amd_debug) hits the same divergence through cast_keep_nullable: STID 3520-704a, Bad cast from type DB::ColumnVector<unsigned long> to DB::ColumnNullable, report. toUInt64OrDefault is a FunctionCastOrDefault, so its return type follows cast_keep_nullable; BuzzHouse reaches the metadata recompute through ALTER TABLE ... MODIFY COLUMN ... MODIFY SETTING and needs allow_nullable_key = 1, which its fuzzer server config sets.

SET cast_keep_nullable = 0;
CREATE TABLE t (a Int32, b Nullable(Int32)) ENGINE = MergeTree()
    ORDER BY (a, toUInt64OrDefault(b)) SETTINGS allow_nullable_key = 1;
ALTER TABLE t MODIFY COLUMN a MODIFY SETTING max_compress_block_size = 16 SETTINGS cast_keep_nullable = 1;
INSERT INTO t VALUES (2, 2);

Workflow [PR]
Sync PR [sync-upstream/pr/109196]

@groeneai

groeneai commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. The exact issue reproducer aborts the server 100% of the time in a debug build (Bad cast from ColumnVector<UInt32> to ColumnDecimal<DateTime64>). Discriminator isolated by matrix: crash iff the ALTER/INSERT session has enable_extended_results_for_datetime_functions = 1.
b Root cause explained? Yes. toStartOf*(DateTime64) returns DateTime(UInt32) with the setting off and DateTime64(Decimal) with it on. KeyDescription::data_types is recomputed with the session context on CREATE/ALTER (AlterCommands::getNewMetadata), so an ALTER with the setting on poisons the in-memory PK type to DateTime64, while the writer produces the column via getCombinedIndicesExpression(getContext()) (default settings, DateTime/UInt32). The primary-index serializer is built from the metadata type -> assert_cast<ColumnDecimal<DateTime64>> on a ColumnVector<UInt32> -> Bad cast.
c Fix matches root cause? Yes. It removes the type divergence at its source: key/index expression analysis pins the setting off (KeyDescription::getKeyFromAST + getCombinedIndicesExpression), so the key type is deterministic and equal to the type the on-disk index actually uses. Not the rejected CAST band-aid (closed PR #101063), which forced a wrong value into the index.
d Test intent preserved / new tests added? New test 04401_extended_datetime_results_key_type_mutation.sql: the issue reproducer, the broader metadata-only-ALTER poisoning variant, and a data-correctness check (key type, sort order, values after mutation).
e Both directions demonstrated? Yes. Pre-fix binary (Build ID 66fa9c30...): test FAILS (server dies). Fix binary (79e29b84...): passes, incl. --test-runs 40 with randomization.
f Fix is general across code paths? Yes. Both key-type resolution sites are fixed: metadata (getKeyFromAST, the single choke point for sorting/primary/partition keys) and the writer (getCombinedIndicesExpression, used by both INSERT getSortingKeyAndSkipIndicesExpression and mutation getPrimaryKeyAndSkipIndicesExpression). Verified INSERT, mutation and partition-key paths.
g Fix generalizes across inputs? Yes. The setting affects toStartOf*/toMonday/toLastDayOf*/... on both DateTime64 and Date32; pinning it off is type-agnostic and covers the whole family. Verified for the DateTime64 ORDER BY key, a toStartOfDay(DateTime64) PARTITION BY key, and a non-datetime key (unaffected).
h Backward compatible? Yes, and it fixes a broken state rather than removing a feature: a key declared under the setting never had a persistable extended type (it reverts to the canonical type on restart, and the on-disk index is always written with the canonical type). No on-disk format change; no SettingsChangesHistory entry needed (the setting default is unchanged). toStartOf*Extended (#108002) is the supported way to define an intentionally extended key. Flagged for maintainer judgement in the PR body.
i Invariants and contracts preserved? Yes. The invariant restored is exactly "the primary-index serializer type (KeyDescription::data_types) equals the produced key column type". createKeyExpressionContext returns the input context unchanged when the setting is already off (no behavior change for the common case) and only copies + pins it otherwise. No lifetime/ownership/concurrency changes.

Session id: cron:clickhouse-worker-slot-6:20260702-141200

@groeneai

groeneai commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator Author

cc @CurtizJ @yariks5s — could you review this? It makes the MergeTree key expression type independent of enable_extended_results_for_datetime_functions: an ALTER/INSERT running with that setting on recomputed a toStartOf*(DateTime64) sort key to the extended type in the in-memory metadata, diverging from the column the storage actually produces (default-settings type, which the on-disk index uses) and aborting the primary-index writer with a Bad cast. The setting is now pinned off when analyzing key/index expressions.

@alexey-milovidov alexey-milovidov added the can be tested Allows running workflows for external contributors label Jul 2, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [fd4a563]

Summary: ❌

job_name test_name status info comment
Stateless tests (amd_debug, ParallelReplicas, s3 storage, parallel) FAIL
05617_autopr_undecided_retry FAIL cidb

AI Review

Summary

The PR resolves storage key, skip-index and implicit-projection types against the server settings baseline, prevents unsafe read optimizations when session semantics differ, and aligns SAMPLE filtering with the stored key. Reviewed head fd4a5633008652a1c80ad2f224ede3e85c43a594, including all prior discussion and the latest lambda fix. No unresolved blockers or majors remain. The 05839_nullable_key_session_read_guard regression passes locally against this head's Fast test binary.

Missing context / blind spots
  • ⚠️ The current Praktika run was limited by the review-thread gate; its reported failure requires a full CI rerun after thread resolution. The compatibility integration tests and JIT-specific regression were inspected but not executed locally; their required CI jobs must complete.
Final Verdict

Status: ✅ Approve

No additional code changes requested.

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Jul 2, 2026
Comment thread src/Storages/KeyDescription.cpp Resolved
@groeneai
groeneai force-pushed the fix-109181-extended-datetime-key-type branch from 0b19eca to 5125ffa Compare July 2, 2026 21:17
@groeneai

groeneai commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator Author

Updated pre-PR validation gate after extending the fix to cast_keep_nullable (review finding by clickhouse-gh[bot]).

Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. CREATE ... ORDER BY CAST(x AS UInt32) then ALTER ... MODIFY COMMENT SETTINGS cast_keep_nullable=1 then plain INSERT aborts every time (also the exact bot repro, and the original datetime case from #109181).
b Root cause explained? A type-affecting session setting changes a key expression's result type (cast_keep_nullable: CAST(nullable AS T) -> Nullable(T); enable_extended_results_for_datetime_functions: toStartOf* on DateTime64 -> DateTime64). CREATE/ALTER recomputes KeyDescription::data_types in the session context, poisoning the in-memory key type, while the writer produces the key column in the default-settings context. Serializer (metadata type) != column type -> Bad cast at MergeTreeDataPartWriterOnDisk::calculateAndSerializePrimaryIndexRow.
c Fix matches root cause? Yes. Pin the type-affecting settings off in the single context used to analyze key/index expressions (createKeyExpressionContext, used by getKeyFromAST and getCombinedIndicesExpression), so metadata and produced column always agree on the canonical type. Not a CAST band-aid (that approach, closed PR #101063, corrupts stored key values).
d Test intent preserved / new tests added? New stateless test 04401 extended with cast_keep_nullable cases (CREATE, metadata-only ALTER poison, CLEAR COLUMN mutation) plus canonical-type + sort-order assertions, alongside the datetime cases.
e Both directions demonstrated? Yes. Pre-fix binary: [ FAIL ] (rc 32), server aborts 4x with Bad cast ... to ColumnNullable. Fix binary: [ OK ], 40/40 with randomization, server alive.
f Fix is general across code paths? Yes. The fix is at the shared choke point createKeyExpressionContext, which every key/index expression analysis (sorting/primary/partition keys, CREATE, ALTER, reload, and the writer's index expression) routes through, so both divergence drivers are handled in one place.
g Fix generalizes across inputs? The bug is per type-affecting setting, not per datatype. Two settings now covered (datetime-extended, cast_keep_nullable); the helper documents that further type-affecting settings must be added explicitly. NULL input still rejected with a normal exception (canonical non-nullable key), not silently changed.
h Backward compatible? The key type is now deterministic (canonical). A key defined under cast_keep_nullable=1 / extended datetime was never persistable (it reverts on server reload and aborts writes), so this fixes an inconsistent/broken state rather than removing a working feature. toStartOf*Extended is the supported way to define an intentionally extended key. Noted for maintainer judgement; no maintainer-requested breaking change.
i Invariants and contracts preserved? Yes. The invariant restored is exactly the one that was violated: KeyDescription::data_types (serializer types) must equal the produced primary-key column types on the write path. Sort order, key values and mutation results verified unchanged.

Session id: cron:clickhouse-worker-slot-2:20260702-204200

@groeneai
groeneai force-pushed the fix-109181-extended-datetime-key-type branch from 5125ffa to 00dd943 Compare July 2, 2026 22:44
@groeneai

groeneai commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator Author

Extended the fix to secondary (skip) index expressions per the review (00dd943).

Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. On debug HEAD (pre-fix), SET enable_extended_results_for_datetime_functions=0; CREATE TABLE ti (ts DateTime64(3), INDEX idx toStartOfTenMinutes(ts) TYPE set(0) GRANULARITY 1) ENGINE=MergeTree() ORDER BY ts; ALTER TABLE ti MODIFY COMMENT 'x' SETTINGS enable_extended_results_for_datetime_functions=1; INSERT INTO ti VALUES ('2020-01-01 00:00:00'); aborts every time; the mutation and cast_keep_nullable variants too.
b Root cause explained? IndexDescription::initExpressionInfo records sample_block/data_types using the DDL session, so a metadata recompute (ALTER/mutation) with a type-affecting setting on stores an extended/Nullable index type. The produced skip-index columns are analyzed with the canonical context, so in MergeTreeIndexAggregatorSet::update the aggregator columns (cloned from the poisoned index_sample_block) are insertRangeFromed from a differently-typed produced column -> typeid-mismatch abort (Bad cast).
c Fix matches root cause? Yes. Analyze the index expression with the same createKeyExpressionContext (both settings pinned off) in initExpressionInfo (metadata) and getSingleExpressionForIndices (merge producer), so recorded type and produced column resolve identically. This mirrors the primary-key fix, not a symptom guard.
d Test intent preserved / new tests added? Extended 04401_extended_datetime_results_key_type_mutation with skip-index cases (set/minmax/bloom_filter, DateTime64/Date32, cast_keep_nullable), each asserting no abort and, for minmax, correct pruning. No existing assertion weakened.
e Both directions demonstrated? Yes. The set/mutation/cast_keep_nullable/Date32 repros abort on pre-fix HEAD (build id 9afcef3) and pass on the fixed build (build id c287d5d); test passes 30/30 under randomized settings.
f Fix is general across code paths? Yes. Covered both secondary-index paths: metadata (initExpressionInfo, the single choke point for CREATE / recalculateWithNewColumns / ATTACH-load / parse / implicit minmax) and the merge producer (getSingleExpressionForIndices). Primary-key and INSERT producer were already handled by the base commit.
g Fix generalizes across inputs (params/datatypes/wrappers)? Yes. Both type-affecting settings (enable_extended_results_for_datetime_functions, cast_keep_nullable), both argument types (DateTime64 via toStartOf*, Date32 via toMonday), Nullable via CAST, and three index types (set, minmax, bloom_filter) verified. The helper neutralizes only the enumerated settings; new such settings must be added there explicitly.
h Backward compatible? Yes. Both settings default to false, so this is a no-op for normal sessions and only pins them within key/index expression analysis. No setting default, on-disk format, or metadata format change.
i Invariants and contracts preserved? Yes. Upholds the invariant that a skip-index's metadata type equals the type of the column produced for it (the contract MergeTreeIndexAggregatorSet::update relies on). initExpressionInfo/getSingleExpressionForIndices take context by value, so localizing the canonical context has no effect on callers.

Session id: cron:clickhouse-worker-slot-2:20260702-221000

Comment thread src/Storages/KeyDescription.cpp Resolved
@groeneai
groeneai force-pushed the fix-109181-extended-datetime-key-type branch from 00dd943 to 16ff3a1 Compare July 3, 2026 00:24
@groeneai

groeneai commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator Author

Follow-up on the query-time key-type validation review (16ff3a1).

Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. SELECT count() FROM cluster(test_cluster_one_shard_three_replicas_localhost, db, t) SETTINGS enable_parallel_replicas=1, max_parallel_replicas=3, prefer_localhost_replica=0, parallel_replicas_custom_key='CAST(x AS UInt32)', parallel_replicas_mode='custom_key_range', ..., cast_keep_nullable=1 over x Nullable(UInt32). Pre-fix: accepted (no error). Fixed: ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER.
b Root cause explained? getKeyFromAST was blanket-canonicalizing (both type-affecting settings pinned off) for every caller. getCustomKeyFilterForParallelReplica uses it only to validate the custom-key type, but the range filter it builds runs later in the caller's own context. With cast_keep_nullable=1, CAST(x AS UInt32) over Nullable(UInt32) was validated as plain UInt32 (Nullable stripped) and accepted, while the runtime predicate still yields Nullable and evaluates to NULL for NULL rows, dropping them on every replica.
c Fix matches root cause? Yes. Canonicalization is made opt-in (canonicalize_key_types, default true); the validator passes false so it uses the caller's session context, restoring the up-front rejection.
d Test intent preserved / new tests added? Yes. Added a regression case to 04401_extended_datetime_results_key_type_mutation asserting the Nullable custom-key config stays rejected ({ serverError ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER }). All existing #109181 cases unchanged and passing.
e Both directions demonstrated? Yes. Test FAILS on the blanket-canonicalization binary (config wrongly accepted, no error) and PASSES on the fixed binary; 20/20 with randomization. Build IDs verified distinct.
f Fix is general across code paths? Yes. getCustomKeyFilterForParallelReplica is the only query-time validator among the getKeyFromAST callers; all three of its call sites (InterpreterSelectQuery, ClusterProxy::executeQuery, PlannerJoinTree) route through it. All other ~40 callers use the built expression to actually produce key columns or persist MergeTree metadata and keep the canonical default.
g Fix generalizes across inputs? Verified the affected wrapper (Nullable via cast_keep_nullable) is rejected, and a plain non-nullable UInt32 custom key still passes validation. The other canonicalized setting (enable_extended_results_for_datetime_functions) does not affect the unsigned-integer custom-key validation.
h Backward compatible? Yes. Metadata paths keep the exact behavior from the base commit (the #109181 fix). Only the parallel-replicas custom-key validator changes, and it is restored to the pre-#109196 (pre-canonicalization) behavior, so no user-visible regression relative to released versions.
i Invariants and contracts preserved? Yes. getKeyFromAST postcondition is unchanged for the default (canonical) callers. For the validator, the invariant "the validated custom-key type equals the type the filter produces at runtime" is restored: both are now resolved in the caller's context.

Session id: cron:clickhouse-worker-slot-5:20260702-235500

@groeneai
groeneai force-pushed the fix-109181-extended-datetime-key-type branch from 16ff3a1 to 611c328 Compare July 3, 2026 01:56
@groeneai

groeneai commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator Author

Pre-PR validation gate (bot CR 4/4: custom_key_sampling nullability hole, 611c328)

Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. custom_key_sampling + cast_keep_nullable=1 + parallel_replicas_custom_key='CAST(x AS UInt32)' over Nullable(UInt32) was accepted; the sampling filter positiveModulo(CAST(x AS UInt32), N) = replica_num is NULL for NULL keys, dropping those rows on every replica. Union of all 3 replicas' filters returns 3 of 4 rows locally.
b Root cause explained? The sampling branch of getCustomKeyFilterForParallelReplica did NO type validation at all (only the range branch did, fixed in 16ff3a1). So a Nullable custom key was never rejected, and positiveModulo's default null propagation makes the equals NULL for NULL keys, silently filtering them on every replica.
c Fix matches root cause? Yes. The sampling branch now validates the custom-key type in the caller's own context (canonicalize_key_types=false, symmetric with the range branch) and rejects Nullable/LowCardinality(Nullable) with ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER. It targets the exact mechanism (nullable key -> NULL-propagating filter), not a symptom.
d Test intent preserved / new tests added? Yes. Added a custom_key_sampling + cast_keep_nullable=1 + Nullable case to 04401 asserting { serverError ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER }, mirroring the existing range case. No existing assertions weakened.
e Both directions demonstrated? Yes. Fixed binary (build id 238a40b): sampling Nullable config rejected with Code 59 before any connection; range still rejected; non-nullable sampling keys still pass. Bug shape: union of 3 replica filters keeps 3 of 4 rows (NULL row dropped).
f Fix is general across code paths? Yes. This IS the sibling-code-path fix (TASK.md gate f): both custom-key modes (range + sampling) in getCustomKeyFilterForParallelReplicas.cpp now reject a nullable key consistently. No other consumer of the sampling filter exists.
g Fix generalizes across inputs? Yes. Uses isNullableOrLowCardinalityNullable, covering Nullable(T) and LowCardinality(Nullable(T)). Verified non-nullable inputs (UInt8/16/32/64, signed Int64, cityHash64(String), arithmetic, toUInt64, tuple, array) all still pass validation. Single-column check only, so tuple/array keys are unaffected.
h Backward compatible? Yes. No setting default / on-disk / wire format change. The only behavior change is that a previously-accepted-but-wrong Nullable sampling custom key is now rejected up front (it produced silently wrong results before), matching the range branch. No SettingsChangesHistory change needed.
i Invariants and contracts preserved? Yes. Upholds the PR's own "do not silently drop NULL rows" invariant for BOTH custom-key modes. getKeyFromAST(canonicalize_key_types=false) keeps the validator's type == the runtime-produced type. Metadata paths keep default canonical context, so the #109181 fix is unchanged.

Session id: cron:clickhouse-worker-slot-0:20260703-013800

Comment thread src/Storages/KeyDescription.cpp Resolved
@groeneai
groeneai force-pushed the fix-109181-extended-datetime-key-type branch from 611c328 to 436eb66 Compare July 3, 2026 03:47
@groeneai

groeneai commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. CREATE TABLE t (a,b,c,d Float64) ENGINE=MergeTree ORDER BY geoDistance(a,b,c,d) (default geo_distance_returns_float64_on_float64_arguments=1), then ALTER TABLE t MODIFY COMMENT 'x' SETTINGS geo_distance_returns_float64_on_float64_arguments=0, then a default INSERT aborts every time on the pre-fix binary (build id 238a40b).
b Root cause explained? The metadata-only ALTER recomputes KeyDescription::data_types in a session where the setting flips geoDistance to Float32, so the recorded key type becomes Float32 while the writer still produces ColumnFloat64 (default-settings context). The index/key serializer then assert_casts the produced ColumnVector<double> to the expected ColumnVector<float> and aborts: Bad cast from type DB::ColumnVector<double> to DB::ColumnVector<float>. Identical mechanism to the datetime/cast bug this PR already fixed.
c Fix matches root cause? Yes. Pins geo_distance_returns_float64_on_float64_arguments (and two more, see g) to its default inside createKeyExpressionContext, the single choke point both the metadata path (getKeyFromAST/initExpressionInfo) and the writer path (getCombinedIndicesExpression/getSingleExpressionForIndices) use, so recorded and produced types agree by construction.
d Test intent preserved / new tests added? Yes. Extended 04401_extended_datetime_results_key_type_mutation with three new metadata-poisoning cases (geo_distance, date_trunc, json_value). No existing assertion weakened.
e Both directions demonstrated? Yes. Pre-fix binary 238a40b: all three cases abort with a Bad cast (server dies). Post-fix binary e3962ac: 04401 passes 20/20 under randomization.
f Fix is general across code paths? Yes. The fix is at the shared createKeyExpressionContext choke point, so primary key and secondary-index metadata + writer paths are all covered. The query-time validator opt-out (canonicalize_key_types=false for getCustomKeyFilterForParallelReplica) is untouched.
g Fix generalizes across inputs (params/datatypes/wrappers)? Yes. Audited every session setting that flips a function return type. Pinned the three that can reach a key expression and produce a column-class divergence: geo_distance_returns_float64_on_float64_arguments (Float32/Float64), function_json_value_return_type_allow_nullable (String/Nullable(String), verified Bad cast ColumnString -> ColumnNullable), function_date_trunc_return_type_behavior (Date/DateTime vs Date32/DateTime64, verified Bad cast ColumnDecimal<DateTime64> -> ColumnVector). Left use_variant_as_common_type unpinned (a Variant is rejected outright in a key, DATA_TYPE_CANNOT_BE_USED_IN_KEY) and enable_named_columns_in_function_tuple unpinned (named vs unnamed Tuple yields the same column and serialization). Both documented in the helper.
h Backward compatible? Yes. Only affects the internal context that builds/rebuilds MergeTree key and skip-index metadata; the canonical key type it records already matched what the storage produced under default settings. No on-disk/wire/settings-default change, no SettingsChangesHistory entry needed. The explicit toStartOf*Extended family remains the supported way to define an intentionally extended key.
i Invariants and contracts preserved? Yes. Upholds the core invariant that KeyDescription::data_types / IndexDescription metadata type equals the type of the column the writer produces for that key/index. The early-return fast path was extended to check all five settings against their defaults, so a fully-default session still returns the original context unchanged (no behavior change on the common path).

Session id: cron:clickhouse-worker-slot-2:20260703-031100

Comment thread src/Storages/KeyDescription.cpp Resolved
@groeneai
groeneai force-pushed the fix-109181-extended-datetime-key-type branch from 436eb66 to 96690e4 Compare July 3, 2026 06:13
@groeneai

groeneai commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. compatibility='24.1' default profile -> geoDistance Float32 key on disk; a build that recomputes the built-in Float64 key type fails SELECT count() FROM tg WHERE geoDistance(a,b,c,d) BETWEEN 0 AND 1e9 SETTINGS force_primary_key=1 with Code 33 CANNOT_READ_ALL_DATA. Bytes read: 0. Bytes expected: 8. every time.
b Root cause explained? Part loaders (IMergeTreeDataPart::loadIndex, MergeTreePartition::load, minmax load) deserialize with the table's CURRENT metadata key types. The prior fix pinned those to built-in literals, so on a compatibility-non-default table a metadata recompute (ALTER/restart) rebuilt the key type as the built-in (Float64) while the on-disk primary.idx was serialized as the baseline (Float32) -> wrong-width deserialization.
c Fix matches root cause? Yes. createKeyExpressionContext now pins to the server persistent baseline (getGlobalContext()->getSettingsRef(), incl. compatibility), which is exactly what the reload path (TablesLoader copies the global context) produces, so recompute matches the on-disk types; only transient per-query/session overrides are stripped.
d Test intent preserved / new tests added? Existing 04401 cases unchanged and still pass 20/20 under randomization. Added tests/integration/test_key_type_compatibility_baseline (compat-profile geoDistance + dateTrunc key survive metadata ALTER + restart; default-profile transient-override neutralization).
e Both directions demonstrated? Yes. Built-in-literal build: compatibility='24.1' parts fail force_primary_key with CANNOT_READ_ALL_DATA. Baseline-pin build (this PR): same tables read correctly across metadata ALTER / restart / OPTIMIZE FINAL, key type stays Float32.
f Fix is general across code paths? Yes. The pin is in the single choke point createKeyExpressionContext, used by all key/index analysis paths (primary key getKeyFromAST + getCombinedIndicesExpression, secondary indexes initExpressionInfo + getSingleExpressionForIndices). getCustomKeyFilterForParallelReplica keeps its opt-out. Loaders (loadIndex / MergeTreePartition::load / minmax) all read the same recomputed types, so a single baseline source fixes them together.
g Fix generalizes across inputs? Verified across the 3 compatibility-flippable type-affecting settings (geo_distance / function_date_trunc_return_type_behavior / and the profile-set enable_extended_results / cast_keep_nullable), and both key expression families (geoDistance Float64->Float32, dateTrunc DateTime64->DateTime). The two settings that cannot diverge (use_variant_as_common_type, enable_named_columns_in_function_tuple) are documented as not pinned.
h Backward compatible? This IS the backward-compatibility fix. It removes the read-failure the built-in-literal pin introduced for tables created under a non-default compatibility. On-disk format is unchanged; recompute now reproduces the pre-PR reload types for existing parts. No SettingsChangesHistory change (no setting default is altered).
i Invariants and contracts preserved? Yes. Invariant: metadata key data_types must equal the type of the produced key column and the type the on-disk index was serialized with. The baseline context makes the metadata-recompute, the INSERT/merge producer, and the reload path all resolve the SAME types. getGlobalContext() is guarded by hasGlobalContext() with a built-in-default fallback, so no null/expired-context path is introduced.

Session id: cron:clickhouse-worker-slot-7:20260703-044900

@groeneai
groeneai force-pushed the fix-109181-extended-datetime-key-type branch from 96690e4 to 223d9aa Compare July 3, 2026 07:17
Comment thread src/Storages/KeyDescription.cpp Resolved
@groeneai
groeneai force-pushed the fix-109181-extended-datetime-key-type branch from 223d9aa to ac97cb0 Compare July 3, 2026 08:55
Comment thread src/Storages/KeyDescription.h Resolved
@groeneai
groeneai force-pushed the fix-109181-extended-datetime-key-type branch from ac97cb0 to 865bbb1 Compare July 3, 2026 10:50
@groeneai

groeneai commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator Author

Pre-PR validation gate for the object-storage partition-strategy opt-out (commit 865bbb1, review comment r3518915690):

Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Code-level, deterministic. createHivePartitionStrategy/createWildcardPartitionStrategy (IPartitionStrategy.cpp) + the DeltaLake hive sink call getKeyFromAST at the new default (canonicalize_key_types=true), so the stored partition_key_description type is pinned to the baseline, while IPartitionStrategy::getPartitionExpressionActions (:231) produces the actual path value under the raw member context. On a type-affecting session setting the two diverge. Confirmed by reading both paths; write path is invariant to the flag.
b Root cause explained? This PR made getKeyFromAST default to canonicalization for persisted MergeTree binary key/index files. The object-storage partition strategies also call it, but they have no persisted binary key file: the partition value is a path string, written by getPartitionExpressionActions under the caller context and read back by parsing the path. Canonicalizing only the stored side records a key type that no longer matches the produced directory names. Our PR introduced this scope-creep.
c Fix matches root cause? Yes. The 3 partition-strategy construction sites pass canonicalize_key_types=false, so the stored type is resolved under the same context that produces the path value: they agree again (master behavior). No new mechanism; it removes the divergence at its source.
d Test intent preserved / new tests added? Existing 03363/03631 hive tests unchanged in intent and pass byte-for-byte. Extended 03363 with a hive partition on bare Date32/DateTime64 columns under enable_extended_results_for_datetime_functions=1, asserting the written directory names and the round-trip stay correct (guards against re-introducing canonicalization scope-creep into object-storage partitioning).
e Both directions demonstrated? Partial, stated honestly. The write path (getPartitionExpressionActions) is invariant to the flag, so the directory names are identical with or without the fix; only the stored partition_key_description type differed. Because hive rejects expression keys (so its key is always a session-independent bare column) and wildcard never reads the stored type back, the divergence had no query-observable symptom, so a stateless test cannot FAIL on the pre-fix variant. The test is therefore a behavior-preserving guard, not a crash reproducer. Verified the fixed binary passes the existing + new cases (2/2 deterministic).
f Fix is general across code paths? Yes. All object-storage getKeyFromAST callers that pair a stored KeyDescription with a getPartitionExpressionActions write path are covered: hive + wildcard in IPartitionStrategy.cpp and the DeltaLake hive sink. Data-lake PartitionPruner/ManifestFileIterator/Utils build a bare KeyDescription for pruning only (no path-name production) and are unaffected. Persisted MergeTree metadata callers keep the default true, so #109181 stays fixed.
g Fix generalizes across inputs (params/datatypes/wrappers)? N/A for the value produced: object-storage partition values are always toString(...) path strings, independent of the pinned settings; the opt-out restores caller-context type resolution for any datatype/wrapper.
h Backward compatible? (maintainer-approved exception only) Yes, and it restores compatibility: the opt-out reverts to master's pre-PR behavior for object-storage partitioning (stored type == produced value). No setting default, on-disk/wire format, or new validation changes.
i Invariants and contracts preserved? Yes. Re-establishes the invariant that a partition strategy's stored partition_key_description type matches the type its getPartitionExpressionActions actually produces under the same context. getKeyFromAST's contract is unchanged (the flag was already opt-in for query-time validators).

Session id: cron:clickhouse-worker-slot-2:20260703-100600

…ession

The read-side guard refused the whole implicit `minmax_count` projection as
soon as the first primary key column or any partition key column depended on
a deviating session setting, even when the query needed none of them. For
`PARTITION BY p ORDER BY tupleElement(h3ToGeo(h), 1)`, a session with
`h3togeo_lon_lat_result_order = 1` read every row for
`SELECT p, count() FROM t GROUP BY p` instead of one row per part.

Refuse the projection only when the candidate reads a projection column
answered from stored key values that the session computes differently: a
partition value whose partition key column is session-dependent, or min/max
of a session-dependent first primary key column. The filter is folded into
the candidate DAG, so its inputs are covered too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 5fe14af

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Fast test (arm_darwin) / 05397_clickhouse_local_locked_path_untouched not from this PR (its diff changes only storage key analysis and its own tests): the test calls flock(1), which macOS does not have, so the expected "Another server instance in same directory is already running" line is missing; it fails the same way on 40+ other PRs #128088 (mine, open)
Mergeable Check, PR praktika rollups of the row above #128088 (the owner of the row above)

Fast test on Linux, all five flaky check jobs and the four Bugfix validation jobs that ran are green, and so is CH Inc sync.

Session id: cron:our-pr-ci-monitor:20261029-073003

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Merged current master and pushed 895668d67b2. The merge was clean, clickhouse builds, and 04401_extended_datetime_results_key_type_mutation, 05218_h3_key_session_order_read_guard and 05219_geo_distance_key_session_read_guard pass locally on the merged tree.

The only red on 5fe14afcd9a was 05397_clickhouse_local_locked_path_untouched in Fast test (arm_darwin). It is not caused by this PR, and its fix (#128088, which skips the test on macOS) is now on master, so this merge pulls it in.

Nothing changed on the three open review threads (nullable divergence on the read side, in SAMPLE BY, and in a qualified parallel_replicas_custom_key). All three are pre-existing on master and wait for the maintainer decision in #109196 (comment). @Ergus, the minmax_count issue from your review was fixed in 39e594b9e4. Please re-review when you can.

Comment thread src/Storages/KeyDescription.cpp Resolved
The setting decides whether `toStartOfInterval` returns the type of its
argument or a type chosen by the interval unit. A metadata-changing ALTER
run with it off recorded `DateTime` for an
`ORDER BY toStartOfInterval(dt64, INTERVAL 1 HOUR)` key while the writer
kept producing `DateTime64(3)`, so the next INSERT aborted with
`Bad cast from type DB::ColumnDecimal<DB::DateTime64> to
DB::ColumnVector<unsigned int>` in the primary index writer (release
builds write an index that fails to load after reattach with
`CANNOT_READ_ALL_DATA`). The same ALTER on a
`PARTITION BY toStartOfInterval(dt64, INTERVAL 1 DAY)` table made the
next start detach the part written after it as broken.

The setting arrived with the master merge, after the list in
`createKeyExpressionContext` was written; pin it with the others.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Comment thread src/Storages/KeyDescription.cpp Resolved
An `ALTER` that changes columns rebuilds the implicit `minmax_count`
projection in the session that runs it (`AlterCommands::apply`), so a
type-affecting setting flipped on that `ALTER` gave its aggregate states
the session type, while the states are filled from the key values the
parts store under the baseline type. With
`geo_distance_returns_float64_on_float64_arguments = 0` on
`ALTER ... ADD COLUMN`, `min`/`max` of an `ORDER BY geoDistance(...)` key
returned `0, 0`; with `enable_extended_results_for_datetime_functions = 1`
a `toStartOfDay(DateTime64)` key or partition key failed with `BAD_GET`,
and with `cast_keep_nullable = 1` a `CAST` key returned `0, 0`. A
DETACH/ATTACH repaired it.

Resolve the projection with `createKeyExpressionContext`, like the keys
and skip indexes, inside `getMinMaxCountProjection`, which covers every
caller (CREATE, ALTER, the replicated metadata path). The replicated
path already used the storage context and was not affected.

`04401` gains the reported case: on the previous head the optimized
query returns `0, 0` while a scan returns the real values.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	src/Storages/MergeTree/KeyCondition.cpp
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Merged master into the branch (35f0e6f). The one conflict was in KeyCondition.cpp: BuildInfo now uses both this PR's filtered key_subexpr_names and master's new columns_named_like_key_expressions. clickhouse builds. 05218 and 05219 pass locally. In 03363 and 04401, the output matches the reference up to the point where those tests need a cluster or a named collection, which my local run doesn't have.

Ergus's minmax_count repro (ORDER BY tupleElement(h3ToGeo(h), 1), min(...) under h3togeo_lon_lat_result_order = 1) now gives the same result with and without optimize_use_implicit_projections, because of a28abf8. Ergus, could you re-review when you have a chance?

Three review threads are still open: the nullable read-side divergence, SAMPLE BY under cast_keep_nullable, and the qualified parallel_replicas_custom_key. The wrong results they describe are pre-existing, and fixing them would change the helper's contract or add caller-side validation, which is a scope decision for a maintainer. That decision is requested in #109196 (comment).

alexey-milovidov and others added 2 commits November 18, 2026 11:02
…401`

Master now re-derives the sampling key in the global context after an `ALTER`
(9bb2fc8, ClickHouse#130154), like the
other keys. A session `cast_keep_nullable = 1` therefore no longer makes
`CAST(x AS UInt32)` over a `Nullable` column a `Nullable(UInt32)` sampling key,
and `ALTER TABLE ... MODIFY SAMPLE BY` is accepted instead of failing with
`ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER`. That made `04401` fail in Fast test after
the last master merge.

Update the test case to the new behaviour: the `ALTER` succeeds and `SAMPLE`
keeps working afterwards. Update the comment in `AlterCommand::apply` to match.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=109196&sha=35f0e6feeff926f8957a9d1a9cdc72405bc472e6&name_0=PR&name_1=Fast%20test
PR: ClickHouse#109196

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Merged current master and pushed 9682cdb04341.

The red on 35f0e6feeff9 was 04401_extended_datetime_results_key_type_mutation in Fast test: ALTER TABLE tsmp MODIFY SAMPLE BY CAST(x AS UInt32) under cast_keep_nullable = 1 no longer fails with ILLEGAL_TYPE_OF_COLUMN_FOR_FILTER. The cause is 9bb2fc8 on master (#130154). After an ALTER, AlterCommands::apply now re-derives the sampling key in the global context, like the other keys, so the session setting no longer makes the stored sampling key Nullable. 05571_alter_keys_independent_of_session_settings on master pins that behaviour. I updated the 04401 case to match: the ALTER is accepted, and SAMPLE works afterwards. I also updated the comment in AlterCommand::apply. clickhouse builds. 05218 and 05219 pass locally, and so does the changed 04401 section.

The three open review threads (nullable divergence on the read side, in SAMPLE BY, and in a qualified parallel_replicas_custom_key) did not change. They are pre-existing on master and still wait for the maintainer decision in #109196 (comment). The minmax_count issue from the requested-changes review was addressed in 39e594b9e4 and a28abf81360e.

alexey-milovidov and others added 2 commits November 21, 2026 10:16
…n setting

A session setting that changes the result type of a key function changes the
value the same expression has for some rows. With `ORDER BY toUInt32OrDefault(x)`
over `x Nullable(UInt32)` the stored key is `UInt32` and holds 0 for a NULL row,
while under `cast_keep_nullable = 1` the query's expression is NULL for it, so
`WHERE toUInt32OrDefault(x) IS NULL` was pruned to nothing by the primary key
and by skip indexes. `JSON_VALUE` under
`function_json_value_return_type_allow_nullable` behaved the same way.

Such functions cannot be listed by name, so
`getKeySubexpressionsWithSessionDependentValues` now resolves every function of
the key again in the query session over the stored argument types, and returns
the subexpressions whose type differs from the stored one. It does that only
when the session sets one of the type-affecting settings differently from the
server.

The filter of `SAMPLE` is now analyzed with `createKeyExpressionContext`, like
the sampling key itself, which is canonicalized again. Before, under
`cast_keep_nullable = 1` the filter was nullable, and a NULL row fell out of
every sample.

In `04401`, one read used a skip index over `toStartOfTenMinutes` of a
`DateTime64` column in a session with
`enable_extended_results_for_datetime_functions = 1`. That index is not used in
such a session anymore, so the query reads under the server settings.

ClickHouse#109196

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Merged current master (clean) and pushed 0a34afcdd224, which fixes two of the three open review threads. CI on 9682cdb04341 was red only because of the review-threads gate: the full suite was skipped while the threads were unresolved.

  • Nullable divergence on the read side. When the session sets a type-affecting setting differently from the server, getKeySubexpressionsWithSessionDependentValues now resolves every function of the key again in the session and reports the subexpressions whose type differs from the stored one. Under cast_keep_nullable = 1, WHERE toUInt32OrDefault(x) IS NULL over ORDER BY toUInt32OrDefault(x) returns the NULL row instead of nothing.
  • SAMPLE BY. The SAMPLE filter is analyzed with createKeyExpressionContext, and the sampling key is canonicalized again. The two halves of a sample return 4 + 0 of 4 rows under cast_keep_nullable = 1; it was 3 + 0.
  • Qualified nullable parallel_replicas_custom_key. Not fixed here: it happens on master with no session setting. I filed A qualified nullable parallel_replicas_custom_key silently drops rows with NULL keys #133393 for it and resolved the thread.

One behaviour change to be aware of: a session that changes the type of a key or index expression no longer uses that key or index. One query in 04401 read a skip index over toStartOfTenMinutes of a DateTime64 column under enable_extended_results_for_datetime_functions = 1; it now reads under the server settings.

clickhouse builds. The new 05839_nullable_key_session_read_guard, 05218 and 05219 pass locally. 04401 matches its reference except for the section that needs a cluster, and 05571 except for the part that needs ZooKeeper; I could not run those two parts locally.

@Ergus, the minmax_count issue from your review was fixed in 39e594b9e4 and a28abf81360e. Could you re-review?

`least_greatest_legacy_null_behavior` does not change the result type of
`least`/`greatest` over two `Nullable` columns, only whether a NULL argument
makes the result NULL or is skipped. The type comparison in
`getKeySubexpressionsWithSessionDependentValues` therefore left such a key
usable when the query set the setting differently from the server: with
`ORDER BY greatest(x, y)`, `WHERE greatest(x, y) IS NULL` under the legacy
behavior was pruned to nothing by the primary key and by a `set` skip index,
the implicit `minmax_count` projection returned the stored min/max, and
read-in-order returned NULL before the other rows.

Name `least`/`greatest` as value carriers while the setting deviates and an
argument can contain NULL. With non-nullable arguments the setting changes
nothing, so such keys stay usable.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Comment thread src/Storages/KeyDescription.cpp Resolved
`callsAnyOf` and `lambdaBodyTypeFollowsSession` walked the executable DAG of a
lambda in the key. Once JIT compiles that body (`compile_expressions`, after
`min_count_to_compile_expression` builds of the same expression), `greatest`
and the arithmetic around it become one `LLVMFunction`, so a session with
another `least_greatest_legacy_null_behavior` kept using a key whose stored
values it computes differently. `greatest` over a nullable argument is
compilable only with the legacy behaviour, so this needs a server baseline
with `least_greatest_legacy_null_behavior = 1`.

Walk `getActionsDAGForSemanticAnalysis()`, which keeps the body as it was
built. The new test runs `clickhouse-local` with that baseline and JIT forced,
for a constant-folded lambda and for one that captures a column.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - fd4a563

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Stateless tests (amd_debug, ParallelReplicas, s3 storage, parallel) / 05617_autopr_undecided_retry flaky, not from this PR: the test is new (added by #130565, merged 2026-11-21 17:00Z) and only its undecided_warm_3 row differs (1 0 0 1 0 1 instead of 0 0 0 0 0 1). It depends on the random settings (the runner's reruns with the same settings failed 44/75), and it failed with the identical diff in the same job on 1 unrelated PR (report) a fix task is created (investigating at full effort, fixing-PR link to follow here)
Mergeable Check, PR praktika rollups of the row above a fix task is created (the one of the row above)

The four Bugfix validation jobs that ran are green, and 05617_autopr_undecided_retry passed in the 6 other stateless jobs that ran it on this head, the plan-based parallel-replicas job included.

Session id: cron:our-pr-ci-monitor:20261121-220024

@groeneai

Copy link
Copy Markdown
Collaborator Author

Fixing PR for 05617_autopr_undecided_retry (Stateless tests (amd_debug, ParallelReplicas, s3 storage, parallel)) created: #133449

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-mergetree MergeTree* family: parts, merges, primary index, column statistics, background data transformation. groeneai-origin-review-human PR origin: human review feedback on a groeneai PR pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Another enable_extended_results_for_datetime_functions logical error

4 participants