Repository navigation
Bound the system.text_log read in 05237_hash_join_row_store_cache_miss - #124473
Conversation
The final assertion joined `system.text_log` with no predicate, so the whole table was read as the join's build side and, on a log-heavy CI server, exceeded the `max_rows_to_read = 20000000` of `tests/config/users.d/limits.yaml` (`TOO_MANY_ROWS`, query 35, line 53, reported from the CH Inc sync check on ClickHouse#100394). Read `text_log` through a subquery bounded by its primary key to the last 10 minutes and lift the row limit for that statement, as ClickHouse#103290 and ClickHouse#122525 do. The bound stays inside the subquery so the `LEFT JOIN` keeps the queries that log no row store line. The joined rows are written by the test's own queries, and the test is killed after 600 s, so they are always inside the window. 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; 1 finding) plus my own review (1 nit).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261007-182400 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20261007-174600 |
|
Workflow [PR], commit [6f8581f] Summary: ✅ AI ReviewSummaryThis PR narrows the Final Verdict✅ Approve. The change is narrowly scoped, the |
Related: #100394 (comment)
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
05237_hash_join_row_store_cache_miss(added in #121981) ends with aLEFT JOIN system.text_logthat has no predicate ontext_log, so the whole table is read as the join's build side. Late in a long parallel run that exceeds themax_rows_to_read = 20000000oftests/config/users.d/limits.yaml. Reported from the CH Inc sync check in #100394 (comment):Change. The right side becomes a subquery bounded by the table's key,
event_date >= yesterday() AND event_time >= now() - 600, and the statement getsSETTINGS max_rows_to_read = 0: the two levers of #103290 and #122525. The bound sits inside the subquery, because a filter after theLEFT JOINwould drop the queries that log no row store line. The joined lines are written by the test's own queries, well inside the window (the test is killed after 600 s). The.referenceis unchanged.Validation (master
516006f49ada9debug build,limits.yamlinusers.d,system.text_logpadded with 21M rows):SETTINGSline it fails, so both levers are needed;Workflow [PR]
Sync PR [sync-upstream/pr/124473]
Version info
26.10.1.1844-master(included in26.10and later)