Repository navigation
Run the JSONEachRow and Avro queries of formats_columns_nullable on a quarter of the rows - #132357
Merged
Algunenano merged 1 commit intoNov 17, 2026
Conversation
…` on a quarter of the rows
The `JSONEachRow` and `Avro` expansions of queries 0 and 2-10 (20 entries) took 1.00-2.51 s
on MasterCI amd and 1.09-2.90 s on arm: each reads all 2M rows of its `File` table, `Avro` on
one thread, `JSONEachRow` from a 1 GB file.
No existing query number or text changes: the 11 queries (entries 0-87) are disabled and 22
(88 entries) appended as 88-175. The 66 sub-second entries return verbatim through
`{fast_format}`; the 22 `JSONEachRow` / `Avro` ones run through `{slow_format}` on new `_500k`
tables written by the same create and fill on `id < 250000` (`Avro` still 2 files,
`JSONEachRow` one, read whole with default parallel parsing). Master's 2M-row `JSONEachRow` /
`Avro` tables are no longer created: only the disabled entries read them.
Local A/B on official builds across ClickHouse#119039 (845c709 -> 8a7ac31):
- `Avro` (2 swapped passes, 12 runs): originals moved 1.048-1.056, copies 1.044-1.058
(retention 0.87-1.12); per-row user time copy / original 0.998-1.024.
- `JSONEachRow` (4 swapped passes, 20 runs): median over the ten, originals 1.0172, copies
1.0145 (pooled retention 0.84), no pair apart by more than 0.015; per row 1.000-1.016.
On the base build the copies take 0.25-0.30 of the originals' time (per row 0.98-1.04), at
most 0.635 s projected on amd and 0.733 s on arm; the 66 verbatim copies 0.88-1.31 of their
originals (median 1.000).
About 21 s less query time per master perf job on amd and 23 s on arm (8 runs per copy;
26 / 28 s at CI's 5), and about 2.6 s less setup.
Related: ClickHouse#129258
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings) plus my own review of the same head (0 blockers, 0 majors, 2 nits, not blocking).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-11:20261117-124600 |
Collaborator
Author
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-4:20261117-114501 |
Contributor
|
Workflow [PR], commit [51cfa8a] Summary: ✅
AI ReviewSummaryPR #132357 reduces the Final VerdictStatus: ✅ Approve |
27 of 39 tasks
Algunenano
approved these changes
Nov 17, 2026
Merged
via the queue into
ClickHouse:master
with commit Nov 17, 2026
5c971c3
385 of 386 checks passed
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #129258
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
The
JSONEachRowandAvroexpansions of queries 0 and 2-10 offormats_columns_nullable.xml(20 entries) take 1.00-2.51 s on MasterCI amd and 1.09-2.90 s on arm. Each reads all 2M rows of itsFiletable:Avrodecodes them on one thread,JSONEachRowparses a 1 GB file.No existing query number or text changes: the 11 queries (entries 0-87) are disabled and 22 (88 entries) appended as 88-175. As in #132174, the marker covers all eight formats of a query, so the 66 sub-second entries return verbatim through
{fast_format}, and the 22JSONEachRow/Avroones run through{slow_format}on new_500ktables, written by the same create and fill onid < 250000(Avrostill 2 files,JSONEachRowone, read whole with default parallel parsing as #123691 set up). Master's 2M-rowJSONEachRow/Avrotables are no longer created: only the disabled entries read them.Per row the copies take 0.98-1.04 of the originals' user time, on master and on both builds of #119039. Across #119039, which moved
Avroentry 19 by 6.7% in its MasterCI comparison, theAvrooriginals moved 1.048-1.056 locally and their copies 1.044-1.058; theJSONEachRoworiginals 1.0172 and their copies 1.0145, the median over the ten. The copies take 0.25-0.30 of the originals' time, at most 0.635 s projected on amd and 0.733 s on arm.That is about 21 s less query time per master perf job on amd and 23 s on arm, and about 2.6 s less setup. They restart the history of the file's 88 entries.
Validation: on the final file
perf.pyruns only entries 88-175 (also with--max-queries 10).🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/132357]
Version info
26.11.1.2634-master(included in26.11and later)