Repository navigation
Do not randomize cast_keep_nullable in the upgrade check's pre-upgrade load - #119768
Merged
Merged
Conversation
…ade load Since #116783 the stress randomization enables `cast_keep_nullable = 1` in a third of the runs, and, unlike its sibling arms, without the `not upgrade_check` guard. The upgrade check runs that load against the previous release's server (26.8.2.7), which predates #119385: it matches the sorting key `CAST(json.b, 'String')` to the same expression in `ORDER BY` by name and arity only, although under `cast_keep_nullable = 1` the query types it `Nullable(String)` while the key is `String`. Read-in-order with `read_in_order_use_virtual_row = 1` then aborts the shipped 26.8 server in `setVirtualRow` with `Logical error: Virtual row has different type` while running `03277_json_subcolumns_in_primary_key`, so `Upgrade check (amd_release)` went red on dozens of unrelated pull requests (57 on 2026-09-11, 23 on 2026-09-12, 7 on 2026-09-13). A master fix cannot clear it, because the exception is raised by the old binary. Guard the arm like the sibling `serialize_query_plan` arm (5620afa). CI: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=99495&sha=c84da07b7cc18cc399ef06b7fc656f99a72b713a&name_0=PR&name_1=Upgrade%20check%20(amd_release) PR: #99495 Co-Authored-By: Claude Fable 5.1 <[email protected]>
Contributor
|
Workflow [PR], commit [6b1566c] Summary: ✅ AI ReviewSummaryThis PR stops Final VerdictStatus: ✅ Approve |
This was referenced Sep 13, 2026
This was referenced Sep 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Do not randomize
cast_keep_nullablein the upgrade check's pre-upgrade stress load.Since #116783 the stress randomization enables
cast_keep_nullable = 1in a third of the runs, and, unlike its sibling arms, without thenot upgrade_checkguard. The upgrade check runs that load against the previous release's server (26.8.2.7), which predates #119385: it matches the sorting keyCAST(json.b, 'String')to the same expression inORDER BYby name and arity only, although undercast_keep_nullable = 1the query types itNullable(String)while the key isString. Read-in-order withread_in_order_use_virtual_row = 1then aborts the shipped 26.8 server insetVirtualRowwithLogical error: Virtual row has different type for CAST(__table1.json.b, 'String'_String). Expected ... Nullable(String) ..., got ... Stringwhile running03277_json_subcolumns_in_primary_key.This made
Upgrade check (amd_release)red on dozens of unrelated pull requests (57 on 2026-09-11, 23 on 2026-09-12, 7 on 2026-09-13 per the CI database), including heads that already contain #119385, because the exception is raised by the old binary, which no master change can fix. The arm is guarded like the siblingserialize_query_planarm was in 5620afa. The guard can be lifted once the previous release used by the upgrade check contains #119385.Example failure: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=99495&sha=c84da07b7cc18cc399ef06b7fc656f99a72b713a&name_0=PR&name_1=Upgrade%20check%20(amd_release)
Related: #116783
Related: #119385
Related: #99495
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/119768]
Version info
26.9.1.1388(included in26.9and later)