Repository navigation
Fix flaky test 02302_defaults_in_columnar_formats on release branches that randomize the Parquet reader - #128946
Conversation
The count-only query and the input_format_defaults_for_omitted_fields = 0 query added by ClickHouse#116666 test the native Parquet reader. The test was backported to 26.3 unchanged (ClickHouse#128501), and the 26.3 runner randomizes input_format_parquet_use_native_reader_v3 to 0 in about 1 of 6 runs. The legacy ParquetBlockInputFormat resolves every header column in initializeIfNeeded() before its count-only branch, so with input_format_parquet_allow_missing_columns = 0 the missing column `d` throws THERE_IS_NO_COLUMN (seen on the 26.3 backport ClickHouse#128753). Pin the reader in the SETTINGS of those two queries. A query-level pin overrides the runner's injected value for that query only, so the older reader-agnostic Parquet query keeps exercising the legacy reader on 26.3. On master the setting is obsolete and accepted without effect; the change matters once backported to 26.3 (same shape as ClickHouse#107970). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings; bounded: 1 full pass + 1 fix round + 1 delta recheck), plus my own cold review (2 nits, no change).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-11:20261103-112700 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-41:20261103-110600 |
|
cc @scanhex12, could you review this and add the |
|
Workflow [PR], commit [7a1a42c] Summary: ✅ AI ReviewSummaryThe change pins Final VerdictStatus: ✅ Approve |
4e51717
Backport #128946 to 26.10: Fix flaky test `02302_defaults_in_columnar_formats` on release branches that randomize the Parquet reader
Backport #128946 to 26.9: Fix flaky test `02302_defaults_in_columnar_formats` on release branches that randomize the Parquet reader
Backport #128946 to 26.8: Fix flaky test `02302_defaults_in_columnar_formats` on release branches that randomize the Parquet reader
Backport #128946 to 26.3: Fix flaky test `02302_defaults_in_columnar_formats` on release branches that randomize the Parquet reader
…formats` on release branches that randomize the Parquet reader
…formats` on release branches that randomize the Parquet reader
…formats` on release branches that randomize the Parquet reader
…_formats` on release branches that randomize the Parquet reader
Related: #116666
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
The two queries of the test
02302_defaults_in_columnar_formatsthat cover the native Parquet reader now pininput_format_parquet_use_native_reader_v3 = 1, so release branches that still randomize this setting no longer run them on the legacy reader.Description
Failing job:
Stateless tests (amd_asan, distributed plan, parallel, 2/2)on the 26.3 backport #128753, https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=128753&sha=7f366daea25e558fcf4dd139269b04998579dd07&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan%2C%20distributed%20plan%2C%20parallel%2C%202%2F2%29:Not found field (d) ... While executing ParquetBlockInputFormat ... (THERE_IS_NO_COLUMN), with--input_format_parquet_use_native_reader_v3 0among the drawn settings. No related open issue found.The count-only query and the
input_format_defaults_for_omitted_fields = 0query that #116666 added here test the native reader. The file reached 26.3 unchanged (#128501), and the 26.3 runner drawsinput_format_parquet_use_native_reader_v3 = 0in about 1 of 6 runs. The legacy reader resolves every requested column before it checks for a count-only read, so withinput_format_parquet_allow_missing_columns = 0the missingdthrows.The fix adds the setting to the
SETTINGSof those two queries. The older Parquet query stays unpinned, so 26.3 keeps legacy-reader coverage. On master the setting is obsolete and has no effect: the change only matters on 26.3 and needsv26.3-must-backport(same shape as #107970).Validation, on the 26.3 CI binary of the failing run:
clickhouse localwith the reader forced off: the old file fails 10/10 with the CI error, the new file passes 10/10, and with the pin set to0it fails again;0draw), new 60/60 pass, 11 of them on a0draw, withsystem.query_logshowing both queries ran with1.On master, 50/50 randomized runs pass and the obsolete setting writes nothing to stderr.
Workflow [PR]
Sync PR [sync-upstream/pr/128946]
Version info
26.11.1.1242-master(included in26.11and later)