Repository navigation
Filter on the broken column in the Iceberg manifest bounds tests - #122895
Algunenano merged 1 commit into
Conversation
`test_iceberg_narrow_manifest_bounds` fails on every master run since ClickHouse#122679 restored its file: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=eb34e3144cb9f262e3b7dc8a6b49e0371dbac2d0&name_0=MasterCI&name_1=Integration%20tests%20%28amd_msan%2C%208%2F8%29 ClickHouse#122681 made `ManifestFileIterator::processRow` decode the bounds of only the columns the filter uses (`getMinMaxColumnTypes`). The test narrows the bound of `n` and then greps for the width guard's log line after a read filtered on `s` alone, which no longer decodes `n`, so the grep returns nothing. The CI of ClickHouse#122681 did not run this file, because ClickHouse#122485 had removed it at the time. The same change made the module's four other checks that a well-formed column in the same manifest entry keeps pruning vacuous: each filtered on the well-formed column alone, so the broken bound was never decoded and the check passed whatever the per-column fallback did. The five per-column checks now also filter on the broken column. The pruner keeps one `KeyCondition` per filter column with only that column as key, so the other column's atom is unknown and the conjunction prunes exactly as the single-column filter did; the expected counts are unchanged. Validated with two mutants that make the width guard or the inverted-pair guard drop min/max pruning for the whole entry instead of one column: each reddens the new file at exactly the checks of its own guard, while the old file's checks at those sites stay green. 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), plus my own cold review of the diff (0 findings). Nothing to adjudicate. Session id: cron:clickhouse-review-slot-10:20260929-135600 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-7:20260929-132300 |
|
Workflow [PR], commit [9ac0927] Summary: ✅ AI ReviewSummaryThis PR repairs five Iceberg manifest-bounds integration assertions that became vacuous once Final Verdict
|
…-nested-const Picks up ClickHouse#122895, which fixes test_iceberg_narrow_manifest_bounds on master. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rong-results Picks up ClickHouse#122895, which fixes test_iceberg_narrow_manifest_bounds on master. Co-Authored-By: Claude Opus 5.5 <[email protected]>
`test_iceberg_narrow_manifest_bounds` failed in `Integration tests (amd_llvm_coverage, 1/8)` on 2eb21c1. The test failed on every `master` run from #122679 until #122895 fixed it. The CI run of 2eb21c1 started before that fix was merged, so it tested a merge without it. A re-run tests that same merge again, so only a new run can pick up the fix. This merge is clean and does not change the diff of the pull request. CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=120024&sha=2eb21c1bc9f02e703ede180dc854745e7b1bf68d&name_0=PR Related: #122895 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Bring in #122895 so the integration test no longer fails on this branch.
Related: #122681
Related: #122679
Related: #118364
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
test_iceberg_narrow_manifest_boundsfails on every master run since #122679 restored its file, e.g.Integration tests (amd_msan, 8/8): the grep for the log lineusable range border for column id 1returns''.Root cause. #122681 made
ManifestFileIterator::processRowdecode the bounds of only the columns the filter uses. The test narrows the bound ofn, then greps after a read filtered onsalone, which no longer decodesn. The CI of #122681 did not run this file: #122485 had removed it at the time.The same change made all five of the module's checks that "a well-formed column in the same manifest entry keeps pruning" vacuous, the failing test's one included. Each filtered on the well-formed column alone, so the broken bound was never decoded and the check passed whatever the per-column fallback did.
Change. Test only. The five per-column checks now also filter on the broken column (e.g.
s < '100010' AND n > 50000), so the read decodes the broken bound, and the expected counts are unchanged. The pruner keeps oneKeyConditionper filter column, so the conjunction prunes exactly as the single-column filter did.Validation (native pytest, debug build of
a3c1801d277f). The old file fails with the CI assertion. The new one passes 60/60, including--count 10and a distributed-plan session. Two mutants make a guard drop min/max pruning for the whole manifest entry instead of one column. Each reddens the new file at exactly the checks of its own guard (3 and 2 checks). The old file's checks at those sites pass on both mutants.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/122895]
Version info
26.10.1.1021-master(included in26.10and later)