Skip to content

Cherry pick #107970 to 26.3: Fix flaky test 04146_iceberg_orc_row_policy_prewhere on release branches - #110467

Merged
robot-ch-test-poll2 merged 3 commits into
backport/26.3/107970from
cherrypick/26.3/107970
Jul 15, 2026
Merged

robot-ch-test-poll2 merged 3 commits into
backport/26.3/107970from
cherrypick/26.3/107970

Conversation

@robot-clickhouse-ci-1

Copy link
Copy Markdown
Contributor

Original pull-request #107970

Do not merge this PR manually

This pull-request is a first step of an automated backporting.
It contains changes similar to calling git cherry-pick locally.
If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.

The check results does not matter at this step - you can safely ignore them.

Troubleshooting

If the conflicts were resolved in a wrong way

If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:

  • delete the pr-cherrypick label from the PR
  • delete this branch from the repository

You also need to check the Original pull-request for pr-backports-created label, and delete if it's presented there

The PR source

The PR is created in the CI job

groeneai and others added 2 commits July 3, 2026 14:24
StorageObjectStorage caches supportsPrewhere() at table-construction time
from input_format_parquet_use_native_reader_v3 (Parquet's prewhere-support
checker returns that setting's value). The test creates an Iceberg table with
format Parquet and relies on PREWHERE, but the CREATE TABLE block did not pin
the setting, so a randomized session with native_reader_v3=0 baked
supports_prewhere=false into the storage object. Subsequent SELECT ... PREWHERE
then failed at analysis time with ILLEGAL_PREWHERE, even though the SELECTs
pinned native_reader_v3=1 (too late, the storage was already constructed).

On master the setting is obsolete and removed from clickhouse-test
randomization, so the test never sees native_reader_v3=0 there; on the 26.3 and
26.4 release branches the setting is still live and still randomized, so the
test failed deterministically about 1 in 6 runs in ReleaseBranchCI and every
backport PR. Pin native_reader_v3=1 in the CREATE TABLE block, matching the
sibling test 04147_iceberg_orc_schema_evolution_row_policy. No-op on master.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…rewhere-pin-native-reader-v3

Fix flaky test 04146_iceberg_orc_row_policy_prewhere on release branches
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! do not test disable testing on pull request labels Jul 15, 2026
…ypick/26.3/107970

# Conflicts:
#	tests/queries/0_stateless/04146_iceberg_orc_row_policy_prewhere.sh
@robot-ch-test-poll2
robot-ch-test-poll2 merged commit 5dc2e0b into backport/26.3/107970 Jul 15, 2026
1 check passed
@robot-ch-test-poll2
robot-ch-test-poll2 deleted the cherrypick/26.3/107970 branch July 15, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not test disable testing on pull request pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants