Repository navigation
Disable the query condition cache in the Paimon tests that count the files read - #131696
Conversation
…files read `03714_paimon_partition_pruning` and `05137_paimon_boolean_type` assert `EngineFileLikeReadFiles` for queries over the fixed `paimon_all_types` fixture. The query condition cache keys a data lake file by its path, so when the same query runs again with the same settings on the same server, every file the previous run found to have no matching row is skipped and the file count drops (10 -> 5, 3, 1). `Stateless tests (arm_asan_ubsan, azure, targeted)` repeats the selected tests up to 50 times with `--no-random-settings`, so every run after the first failed; other jobs randomize `use_query_condition_cache` and settings that are part of the cache key. Set `use_query_condition_cache = 0` on every counted query, the pruned and the unpruned one of each pair (with only the unpruned one pinned, a repeat gets the pruned count from the cache even when pruning is broken), as `05473_paimon_date32` and `05763_iceberg_cluster_partition_pruning_reads` already do. 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 a separate cold review (0 findings). Session id: cron:clickhouse-review-slot-9:20261114-221300 |
|
cc @JiaQiTang98, could you review this? The two Paimon tests that count EngineFileLikeReadFiles failed on repeated runs in the new azure targeted job: the query condition cache keys data lake files by path, so a repeat skipped the files the previous run found empty. The tests now set use_query_condition_cache = 0 on every counted query. |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-7:20261114-215800 |
|
Workflow [PR], commit [8358a5c] Summary: ❌
AI ReviewSummaryPR #131696 disables Final Verdict✅ Approve |
CI finish ledger - 8358a5cEvery failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
Session id: cron:our-pr-ci-monitor:20261115-013011 |
|
@groeneai track the CI bugfix PR, when the PR merged, merge master and fix CI |
|
The only failure, |
9005321
Related: #131576
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not required.
Description
03714_paimon_partition_pruningand05137_paimon_boolean_typefail from their second run on the same server: Stateless tests (arm_asan_ubsan, azure, targeted) repeats them up to 50 times with--no-random-settings, and every run after the first reads fewer files than the reference (10becomes5,3or1).Both tests assert
EngineFileLikeReadFilesfor queries over the fixedpaimon_all_typesfixture. The query condition cache keys a data lake file by its path, so repeating a query with the same settings skips every file that the previous run found to have no matching row; in the query log the skipped files (ObjectStorageQueryConditionCacheSkippedFiles) are exactly the missing ones. The cache is correct, the tests assumed it was cold. Other jobs randomizeuse_query_condition_cacheand settings that are part of its key, so a repeat there practically never gets the same key.The change sets
use_query_condition_cache = 0on every query whose files are counted, the pruned and the unpruned one of each pair, as05473_paimon_date32and05763_iceberg_cluster_partition_pruning_readsalready do. Pinning only the unpruned query is not enough: a repeat then gets the pruned count from the cache even with pruning disabled. The other tests assertingEngineFileLikeReadFilesalready disable the cache or read a table or path created per run.Validation (master debug build, local MinIO, one server): before the change run 1 passes and runs 2-3 fail with the CI diff; after it each test passes 50/50 without randomization and 50/50 with it; removing the setting from one query brings the failure back; disabling pruning on a pruned query fails every run.
Workflow [PR]
Sync PR [sync-upstream/pr/131696]
Version info
26.11.1.2467-master(included in26.11and later)