Repository navigation
Pin the Top-K limit in 05100_autopr_gate_lazy_read - #132873
devcrafter merged 1 commit into
Conversation
`clickhouse-test` randomizes `query_plan_max_limit_for_top_k_optimization` over [0, 1, 10, 100, 1000, 100000]. At 0 (no limit) or 100000, Top-K takes the test's `ORDER BY ord LIMIT 10000` and adds `__topKFilter(ord)` to the read's PREWHERE. Plan-based parallel replicas keeps such a read local (`mergeTreeReadCanBeShipped`), so automatic parallel replicas finds no read on the other replicas, skips the query and collects no statistics, and the `05100_lazy_large_scan` row turns from 1 to 0 in `Stateless tests (arm_binary, ParallelReplicas, plan-based, s3 storage, parallel)`. Pin the limit to its default, as 801dfec did for 05055. The product limitation is ClickHouse#131858. Locally, with `parallel_replicas_plan_based=1` and the limit at 0 or 100000: 5/5 FAIL before, 5/5 OK after, 5/5 FAIL again with only the new `SET` removed. Fully randomized plan-based runs: 6/50 FAIL before, 50/50 OK after. 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 (0 findings).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-48:20261119-041700 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-41:20261119-040200 |
|
Workflow [PR], commit [437e698] Summary: ❌
AI ReviewSummaryPR #132873 pins Missing context / blind spots
Final VerdictStatus: ✅ Approve |
CI finish ledger - 437e698Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
The other CIDB Session id: cron:our-pr-ci-monitor:20261119-073024 |
|
Failed test fixed in #132867 |
3c82c71
Related: #131858
Related: #128413
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
05100_autopr_gate_lazy_readfails inStateless tests (arm_binary, ParallelReplicas, plan-based, s3 storage, parallel)(2 of 55 runs in 30 days, e.g. this report); the runner's diagnosis namesquery_plan_max_limit_for_top_k_optimization 0.With that limit at 0 or 100000, Top-K takes the test's
LIMIT 10000and adds__topKFilter(ord)to the read. Plan-based parallel replicas keeps such a read local, so automatic parallel replicas logsThe plan built with parallel replicas contains no read from the other replicasand collects no statistics (#131858). The test now pins the limit to its default, as801dfec4b8a5did for05055_autopr_limit_offset. No revert: the test and the keep-local rule predate the job that exposed this.Validation: with
parallel_replicas_plan_based=1and the limit at 0 or 100000, 5/5 FAIL before and 5/5 OK after; removing only the newSETfails again. Fully randomized plan-based runs: 6/50 FAIL before, 50/50 OK after; query-based 50/50 OK.Workflow [PR]
Sync PR [sync-upstream/pr/132873]
Version info
26.11.1.2839-master(included in26.11and later)