Repository navigation
Added fix for input_format_max_block_size_bytes silently ignored for INSERT - #103068
Conversation
|
Workflow [PR], commit [73d9bc2] Summary: ✅
AI ReviewSummaryThis PR fixes the precedence between Final VerdictStatus: ✅ Approve |
|
This was fixed by #105146. Let's update the branch. |
…_ignored_for_INSERT_operations
…ock_size_bytes_silently_ignored_for_INSERT_operations
Address review feedback: the assertion counted `system.part_log` `NewPart` rows for table `t_ifmbs_override` within a 600s time window. On a re-run the test reuses the same database and table, so stale `NewPart` events from a previous run could be counted, making the result flaky. Set an explicit unique `query_id` on the INSERT and filter `system.part_log` by it, so only the parts created by this exact INSERT are counted, regardless of re-runs. The INSERT over HTTP is synchronous (`async_insert=0`), so all `NewPart` events are recorded before the request returns; a single synchronous `SYSTEM FLUSH LOGS part_log` makes them queryable, removing the polling loop. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…ock_size_bytes_silently_ignored_for_INSERT_operations
The style check (`ci/jobs/scripts/check_style/various_checks.sh`) rejects `.sh` tests that send `curl` requests and then read `system.part_log` / `system.query_log` after a `SYSTEM FLUSH LOGS` without a retry loop, because the log entries are written after the HTTP response is sent and reading them immediately is racy (#84364). The previous revision replaced the polling loop with a single synchronous `SYSTEM FLUSH LOGS part_log`, which tripped this check. Restore a bounded retry loop that flushes `query_log, part_log` and waits until the INSERT appears in `system.query_log` as `QueryFinish` before reading `system.part_log`, mirroring `03723_max_insert_block_size_bytes_http.sh`. The deterministic `query_id` scoping of the `part_log` assertion is kept. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…g query The Style check 'various' rule requires any test referencing `system.query_log` to include a `current_database = currentDatabase()` condition. The wait-loop query in `04104_input_format_max_block_size_bytes_override.sh` filtered only by `query_id` and `event_date`, so the lint flagged it. Add the predicate; it also correctly scopes the poll to this test's database. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…ock_size_bytes_silently_ignored_for_INSERT_operations
|
Pushed
Also merged fresh |
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered by tests: 7/7 (100.00%) | Lost baseline coverage: none · Uncovered code |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fixed
input_format_max_block_size_bytesbeing silently ignored duringINSERTparsing whenmax_insert_block_size_bytesis0(the default). The setting now correctly limits the size of blocks produced by row input formats.Documentation entry for user-facing changes
Closes: #103059
Version info
26.6.1.1091