Skip to content

Pin the part layout of the index_bulk_filtering performance test - #121260

Merged
PedroTadim merged 7 commits into
ClickHouse:masterfrom
groeneai:pin-index-bulk-filtering-part-layout
Sep 24, 2026
Merged

PedroTadim merged 7 commits into
ClickHouse:masterfrom
groeneai:pin-index-bulk-filtering-part-layout

Conversation

@groeneai

@groeneai groeneai commented Sep 21, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #100759

CI failures it fixes, with each job's own named results:

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Stop merges and pin the source block size while the index_bulk_filtering performance test fills its tables, so its queries are measured against the part layout the fills build.

Description

The fixture disables squashing (min_insert_block_size_rows = 1), so every source block becomes its own part, 16 in all, which merges then collapse while the harness is timing. Parts cover contiguous ranges (ascending data, ORDER BY ()), so filterPartsByStatistics keeps 3 of the 16 the fill writes but both of 2 merged ones, and the skip index evaluates 39321 marks instead of 199997. The two sides of a run reach different points of that collapse, and the modes are disjoint: the 16..24 ms bucket is empty in 2517 samples per side over 10 days of arm_release, master_head.

The job's own report then calls query #0 slower and the dashboard rates it confirmed_regression. The read is the same 3 granules either way, so no engine path misbehaves.

So I pin the layout the fill already builds: SYSTEM STOP MERGES per table, which cannot reach another test's tables, and max_block_size = 65536, so the cut is a property of the settings and not of the setting's default. join_convert_full_to_left_or_right.xml pins the same pair at the same value. A throwIf per table fails the job if the layout is not 16 parts, since SYSTEM STOP MERGES on a missing table is a silent no-op.

With both sides at 16 parts, 0 of 5537 arm jobs reached the check's 15% floor on #0 (worst +9.6%); with the layouts differing, 489 of 3469 did, up to +316%. Removing either pin restores the drift. Determinizing picks one mode, so the series step once, all on amd (30 d medians): #0 30 -> 16 ms, #1 67 -> 59, #2 66 -> 83, arm moving under 5% on all three. #2 keeps a residual, layout-independent noise floor (230 slower rows in 30 d against #0's 91).


Workflow [PR]
Sync PR [sync-upstream/pr/121260]

Version info

  • Merged into: 26.10.1.630-master (included in 26.10 and later)

groeneai and others added 2 commits September 21, 2026 01:14
The fixture fills its tables with min_insert_block_size_rows = 1, which
disables squashing, so every block numbers(1000000) emits becomes its own
part: 16 parts, 15 x 65409 + 18865 rows. Nothing stops merges, so the
background scheduler collapses those 16 tiny single-partition parts while
the harness is timing.

The data is inserted in ascending order and the table is ORDER BY (), so
each part covers a contiguous value range, and filterPartsByStatistics
keeps only the parts whose range holds one of the three sought values:
3 of the 16 parts the fill writes, but both of 2 merged parts. Since
total_marks_pk is summed over the survivors only, the granules the skip
index has to evaluate are a step function of how far merging got before
timing started, 39246 marks at 16 parts and up to 200003 at 2. The two
sides of a comparison run set up concurrently on two servers, reach
different points of that collapse, and the harness reports the difference
as a slowdown of the binary under test.

Over 10 days on Performance Comparison (arm_release, master_head, N/6),
query #0 measures at two separated modes with an empty 16..24 ms bucket in
2493 samples per side, and the two sides' distributions match to within 2
samples. A mode flip reads as up to +291%, the job's own report calls the
query slower, and the dashboard rates it confirmed_regression, which reds
the shard on PRs whose diff cannot reach the query, and on master.

SelectedMarks, SelectedRanges and SelectedRows are identical in both modes
on both architectures, so no engine path misbehaves: the read is 3 granules
either way and only the amount of index analysis moves. The fix therefore
belongs in the fixture, which manufactures the non-determinism in its own
fill. Stopping merges per table mirrors set_index_analysis.xml, the sibling
fixture for this same feature; the per-table form, as in
adaptive_codec_merge.xml, cannot reach another test's tables, and teardown
restores merges and drops both tables, where the old file left
test_minmax_index behind.

Validated with an exact count oracle instead of timings, which makes it
arch- and build-independent: with the pin, query #0 reports
SelectedPartsTotal = 16 and SelectedMarksTotal = 39246, and query ClickHouse#1
reports 200003, on all 315 probes including after repeated sleeps.
Unpinned, the same probe sees 11 parts / 91574 marks and then 6 / 156984
within half a second, and 6 / 156984 in the settled state. Removing only
the two SYSTEM STOP MERGES lines brings the drift back. A co-tenant table
filled while the pin is active still merges 16 parts down to 6, and after
the drop_query block a fresh table of the same name merges again.

Determinizing necessarily picks one mode, so the series steps once: amd
from ~31 ms to ~14 ms, while the arm median stays at 8 ms.

Related: ClickHouse#100759

Co-Authored-By: Claude Opus 5 <[email protected]>
Holding merges keeps the parts the fill writes, but it does not determine
how they are cut. min_insert_block_size_rows = 1 disables squashing, so one
part is written per source block, and the source block size for
numbers(1000000) is max_block_size, which this fixture never set. The
existing max_insert_block_size = 65536 does not supply it:
use_strict_insert_block_limits defaults to false, and in that state the
max_insert_block_size settings are not enforced for an INSERT. So the
16-part layout every figure here depends on was a property of the compiled
DEFAULT_BLOCK_SIZE rather than of the fixture, and the arithmetic closes
only on that value: 15 x 65409 + 18865 = 16 parts, 3 x 13082 = 39246
selected marks, 15 x 13082 + 3773 = 200003 total. Setting max_block_size to
65409 in both fills makes the cut a property of the settings and keeps
those measured values unchanged, which is what
join_convert_full_to_left_or_right.xml already does for the same reason.

The pin could also fail silently. SYSTEM STOP MERGES <table> does not error
when the table is not found: the statement resolves the StorageID without
an existence check, and the action lock is added only if the catalog
returns a table. A rename or a typo would therefore turn the pin back into
a no-op, and because the fixture asserted nothing about its own layout the
only symptom would have been confirmed_regression reds reappearing weeks
later on unrelated pull requests, which is the failure this fixture change
exists to end. One throwIf over system.parts per table, in the shape
group_by_low_cardinality_array_join.xml uses, turns that into an immediate
job failure: a setup query that raises is fatal, since perf.py re-raises it
out of the worker thread.

Validated with the same exact count oracle: query #0 reports
SelectedPartsTotal = 16 and SelectedMarksTotal = 39246, and query ClickHouse#1
reports 200003, on all 574 tight probes and every settled iteration.
The assertion was proven live in both directions it has to catch. With only
the two SYSTEM STOP MERGES lines removed, test_set_index is down to 11
active parts by the time the fills finish and the assertion fires on every
run; with merges still held but max_block_size set to 70000, both tables
land at 15 parts and it fires again. SelectedMarks, SelectedRanges and
SelectedRows are unchanged throughout, so the fixture still analyses the
same 3 granules it always read.

Corrects the previous commit message's disclosure of the one-time step in
the amd series: measured at the pinned layout it is ~20 ms, the median over
174 job-sides in 30 days, not ~14 ms, which rested on 4 samples. The arm
median is unchanged at ~8 ms.

Related: ClickHouse#100759

Co-Authored-By: Claude Opus 5 <[email protected]>
@groeneai groeneai added can be tested Allows running workflows for external contributors groeneai-origin-ci-own-pr PR origin: CI on a groeneai PR exposed a separate defect labels Sep 21, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review: adjudication log (click to expand)

Pre-publication review by an independent model (engine: codex; 3 findings over 1 full pass and 1
delta recheck) plus my own cold review, each finding adjudicated against the source and CI history.

# Sev Finding Verdict Evidence / action
1 ⚠️ The part boundaries were not pinned: the 16-part cut came from the compiled DEFAULT_BLOCK_SIZE, not from the fixture AGREE, fixed @ c26dcd9 max_block_size = 65409 in both fills, the value the fixture's arithmetic closes on, so the measured series does not move
2 ⚠️ The pin could fail silently, since SYSTEM STOP MERGES on a missing table is a no-op AGREE, fixed @ c26dcd9 one throwIf over system.parts per table; both liveness arms fire (merge pin removed; and max_block_size = 70000 with merges held)
3 ⚠️ The oracle checks the part count, not the part boundaries, and is not repeated after the timed queries DISAGREE The count pins the band: ceil(1000000/max_block_size) = 16 only for 62500..66666, so query #0's selected marks can only move inside 37500..40002 against the 39246 it reports (the 65536 case named is +0.199%), against the check's 15% floor and this fixture's own 5.26% p99 spread over 5537 arm jobs; both servers read the same fixture file, so a block-size edit moves both sides alike and cannot create the left/right asymmetry this change removes. Nor can a live table's merge lock lapse: ActionLocksManager::add holds the ActionLock until remove() (only SYSTEM START MERGES, here after the timed queries) or cleanExpired(), which drops only locks whose storage is already gone and runs only from the SYSTEM STOP/START handler itself; a restart releases it, and the confirmation pass then re-runs the fills
4 💡 The one-time step in the series was estimated, and only for query #0 AGREE, fixed in the description Measured per execution, pairing SelectedPartsTotal with client_time on the same query_id (30 days): amd #0 30 -> 16 ms (n=16571), #1 67 -> 59, #2 66 -> 83, arm under 5% on all three. The commit messages carry the earlier estimates (~14 ms, then ~20 ms); the description supersedes both
5 💡 Query #2 keeps a residual noise floor that is not layout-driven AGREE Disclosed in the description: 230 slower rows in 30 days against #0's 91. Pinning roughly halves its excursions rather than removing them, and this change does not claim otherwise

The effectiveness figures in the description (0 of 5537 arm jobs at the check's 15% floor on
query #0 with both sides at 16 parts, worst +9.6%; 489 of 3469 where the layouts differ, spanning
-75% to +316%) are my own measurement, independent of the implementation's evidence.

Severity: ❌ blocker / ⚠️ major / 💡 nit. DISAGREE verdicts carry recorded evidence and are terminal
per finding.

Session id: cron:clickhouse-review-slot-49:20260921-022000

@clickhouse-gh clickhouse-gh Bot closed this Sep 21, 2026
@clickhouse-gh clickhouse-gh Bot reopened this Sep 21, 2026
@groeneai
groeneai requested a review from rschu1ze September 21, 2026 03:07
@clickhouse-gh

clickhouse-gh Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [3d445e1]

Summary: ✅


AI Review

Summary

This PR makes the index_bulk_filtering performance fixture deterministic by stopping merges before the fills, pinning max_block_size during the inserts, asserting the expected 16-part layout for both tables, and cleaning up both tables afterward. I did not find a remaining correctness or review issue in the current patch, and there are no new inline findings to post.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the comp-testing Test content only (no production code). label Sep 21, 2026
@PedroTadim PedroTadim self-assigned this Sep 21, 2026
@PedroTadim

Copy link
Copy Markdown
Member

@groeneai can you resume to me why do you need this?

@groeneai

Copy link
Copy Markdown
Collaborator Author

Summary: #0's verdict depends on a part layout the fill leaves at random, so the check reports slowdowns that no diff caused.

The fill uses min_insert_block_size_rows = 1, so every source block becomes its own part (16 of them), and merges collapse them while the harness is timing the queries. #0 reads the same 3 granules either way, but 39246 marks against the 16-part layout and 156984 against the collapsed one, so it is bimodal on arm (5-9 ms vs 25-39 ms) and each side of a run picks a mode independently of the binary: over 10 days of arm_release, master_head the two sides' duration distributions match to within 2 samples out of 2471.

The cost: with both sides at 16 parts, 0 of 5537 arm jobs reached the 15% floor a slower verdict needs (worst +9.6%); with the layouts differing, 489 of 3469 did, up to +316%. It lands on whoever runs the shard, so in the last 30 days CIDB has #0 reported slower on 49 PRs plus 9 master runs of arm_release, and unstable on 70 further PRs. That is how I found it: it reddened 2/6 on my #109424.

The PR pins the layout the fill already builds and asserts it, so #0 can only be slower for a reason in the diff. All six Performance Comparison (arm_release, master_head, N/6) shards are green on this head, including 1/6 and 2/6.

@PedroTadim

Copy link
Copy Markdown
Member

@groeneai show me a CI failure. You should always show a CI failure whenever you open a PR to fix something on it!

@groeneai

Copy link
Copy Markdown
Collaborator Author

Three failing jobs, quoting each report's own named results.

A master run, no pull request under test, Performance Comparison (amd_release, master_head, 2/6) on 680645a5ff6a:

Fail [Performance Comparison (amd_release, master_head, 2/6)]
  | 10 errors, 8 too long, 2 slower, 1 unstable
  Fail [Check Results]
    Slower [index_bulk_filtering #0]
    Slower [index_bulk_filtering #1]
    Unstable [index_bulk_filtering #2]

The fixture's three queries are the only named results: #0 measured 36 ms on the old side against 45 on the new, #1 76 against 97.

The failure this PR came from, on #109424, (arm_release, master_head, 2/6): Fail [index_bulk_filtering #0] is the only named result, 8 ms old against 31 ms new. That branch materializes sparse sort-key columns in FinishSortingTransform and cannot make SELECT count() ... WHERE x BETWEEN ... 4x slower; 8 ms and 31 ms are the fixture's two layout modes.

Another contributor's pull request the night before, (arm_release, master_head, 1/6): Fail [index_bulk_filtering #0] again, 7 ms against 28.

Breadth from CIDB over 30 days, arm_release and query #0 only: 58 slower rows (48 pull requests, 9 master runs) and 75 unstable (71 pull requests) against 4958 success; 12 Performance Comparison jobs failed while carrying one of those rows, 4 of them master runs.

Point taken on always showing the failure: those three job links are now in the description.

@PedroTadim
PedroTadim added this pull request to the merge queue Sep 21, 2026
<fill_query>
INSERT INTO test_set_index
SETTINGS max_insert_threads = 64, max_insert_block_size = 65536, min_insert_block_size_rows = 1, min_insert_block_size_bytes = 1
SETTINGS max_insert_threads = 64, max_insert_block_size = 65536, max_block_size = 65409, min_insert_block_size_rows = 1, min_insert_block_size_bytes = 1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The more interesting question is why max block size is not a power of two, and it isn't answered here.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure it makes more sense, but we don't enforce it

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

65409 is not a value I chose: it is the current default of max_block_size, DEFAULT_BLOCK_SIZE in src/Core/Defines.h:33, which is itself deliberately not a power of two (65536 - PADDING_FOR_SIMD - (PADDING_FOR_SIMD - 1), leaving room for the padding arrays carry). The setting writes out what the server already does, so that the layout this test asserts cannot follow a later change of that default. Measured both ways just now, same fill: with the setting and with it removed the layout is identical, 16 parts (15 of 65409 rows plus a 18865-row remainder), 200019 marks.

A power of two would deviate from the default rather than restate it: 65536 also gives 16 parts, but it moves #0 from 39246 to 39321 selected marks (the table in the other thread). So I kept the default and answered the question in the file, in 9d0f619. If you would rather have the round number, say so and I will switch it.

SETTINGS index_granularity = 5;
</create_query>

<!-- Each merge widens a part's value range past the sought keys, and with squashing off a part holds exactly one source block,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PedroTadim Some poor future person will stumble upon

Each merge widens a part's value range past the sought keys, and with squashing off a part holds exactly one source block

scratch its head, and wonder what this could possibly mean.

As a reminder, it is our collective responsibility to keep the code, including the tests, in a form that they can be digested easily. Write once, read many times.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are more complex comments with many more lines across the codebase.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Totally not personal of course, but this is not an excuse to add more of these.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@groeneai can you simplify the comment to just say stopping merges, so none happens while the inserts are being benchmarked?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simplified in 9d0f619. The comment is now:

Stop merges, so that none happens while the queries below are benchmarked.
65409 is the default `max_block_size`, written out so that the part layout stays the same
if that default changes.

The first sentence is the one asked for here. The second is only there because of the block size question in the other thread. Everything else the old comment tried to say (why a merged part changes what these queries read, the measurements, the alternatives I rejected) is in the commit message instead.

@PedroTadim
PedroTadim removed this pull request from the merge queue due to a manual request Sep 21, 2026
Review asked for a comment a future reader can digest, and for it to say only
that merges are stopped so that none runs while the queries are benchmarked.

The second line records where 65409 comes from, since review also asked why the
pinned block size is not a power of two. It is not a chosen constant: it is the
current default of `max_block_size` (`DEFAULT_BLOCK_SIZE` in src/Core/Defines.h,
65536 minus the SIMD padding that arrays carry). Writing the default out keeps
this test's part layout independent of a later change to that default, and it
changes nothing measured today: with and without the setting the fill builds the
same layout (16 parts, 15 x 65409 rows + 18865, 200019 marks). A power of two
would deviate from the default and shift the work instead: 65536 still gives 16
parts, but moves query #0 from 39246 to 39321 selected marks.

Comments only; the queries and the assertions are byte-identical.
<fill_query>
INSERT INTO test_minmax_index
SETTINGS max_insert_threads = 64, max_insert_block_size = 65536, min_insert_block_size_rows = 1, min_insert_block_size_bytes = 1
SETTINGS max_insert_threads = 64, max_insert_block_size = 65536, max_block_size = 65409, min_insert_block_size_rows = 1, min_insert_block_size_bytes = 1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@groeneai keep the block sizes always a power of two

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 1b779dc: both fills pin max_block_size = 65536, matching the max_insert_block_size next to it and tests/performance/join_convert_full_to_left_or_right.xml, which pins the same pair at that value.

Nothing the test asserts changes. Both tables still write 16 active parts, so the throwIf oracles stand; the cut moves from 15 x 65409 rows + 18865 to 15 x 65536 + 16960. Per EXPLAIN indexes = 1, #0 keeps the same 3 of 16 parts and reads the same 3 granules, with the index range it walks moving 39246 -> 39321 (+0.19%, against the check's 15% floor); #1 and #2 keep their part selection too.

I dropped the comment line that named 65409 as the default, since the swap makes it false, and updated the two figures the description quoted.

Review asked to keep the block sizes always a power of two, so the fill's
`max_block_size` moves from 65409 to 65536. It now matches the
`max_insert_block_size` beside it and
tests/performance/join_convert_full_to_left_or_right.xml, which pins the same
pair at 65536.

65409 was the current default of the setting (`DEFAULT_BLOCK_SIZE` in
src/Core/Defines.h, 65536 minus the SIMD padding), so the pinned value is now a
deliberate round number instead of a restatement of that default. The comment
dropped the sentence naming 65409 as the default, which the swap makes false,
and states the invariant the pin buys instead.

Nothing the test asserts or measures changes. Both tables still write 16 active
parts, so the `throwIf` oracles stand; the cut moves from 15 x 65409 rows +
18865 to 15 x 65536 + 16960. Measured with `EXPLAIN indexes = 1` on all three
queries, 65409 -> 65536:

  #0  parts 3/16 unchanged, index range 39246 -> 39321 granules, read 3 -> 3
  ClickHouse#1  parts 1/16 unchanged, read 1 -> 1
  ClickHouse#2  parts 12/16 unchanged, 156984 -> 157284 granules, read 133114 -> 133110

The +0.19% is the range the skip index walks, not the data read. With both
sides at one layout the worst arm spread measured on #0 is +9.6% over 5537
jobs, against the check's 15% floor, so the shift is far below either.
@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 1b779dc

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task whose
fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Performance Comparison (arm_release, master_head, 2/6) / count_from_formats #50 dashboard-only confirmed regression: 0.044 s to 0.054 s, a relative difference of 0.228 against a 0.228 threshold, while the job's own report publishes no slower query. Over 10 days the two sides of this query are one distribution (median 37 ms on both, p90 43 vs 44 ms), so the 0.054 s is an upper-tail draw rather than a change #121090 (mine, open)
Mergeable Check, PR praktika workflow rollups of the perf shard red above, not separate failures #121090 (mine, open)

#121090 fails a master_head shard only when the shard's own report also calls the query slower,
which is the term missing here. The 3 too long phrase in the same job message is informational and
not a failure source: it appears on all 2232 green runs of this shard over the last 7 days as well as
on all 63 red ones.

This pull request changes one file, tests/performance/index_bulk_filtering.xml. That fixture ran on
shard 6/6 and passed with the pinned layout (#0 at 8 ms on both sides, the low mode this change
targets), so the 2/6 red is not reachable from the diff. The same shard red 48 distinct pull requests
over the last 7 days.

Session id: cron:our-pr-ci-monitor:20260922-143219

@PedroTadim

Copy link
Copy Markdown
Member

@rschu1ze one more look?

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 4f50feb

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task whose
fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Performance Comparison (arm_release, master_head, 2/6) / order_by_read_in_order #1 and set_index #1 (slower), timeseries_to_grid_aggregation_functions #0, #3, #4, #6 (unstable) threshold loss rather than a measurement: this shard's Select historical data step timed out three times (Read timed out. (read timeout=10) at 01:46:36, 01:46:46 and 01:46:56Z), so historical-thresholds.tsv was written empty and every row of report/all-query-metrics.tsv carries the hardcoded 0.15 / 0.25 floors instead of a learned bar. Both changed_fail and unstable_fail were decided against a floor that a micro benchmark with this much run-to-run variance cannot hold. The 2 too long term in the same job message is informational, not a failure source #121189 (mine, open)
Mergeable Check, PR praktika workflow rollups of the perf shard red above, not separate failures #121189 (mine, open)

#121189 fetches those thresholds with praktika's own 60 s CIDB timeout instead of the hardcoded 10 s,
and makes a shard that obtained none abstain instead of falling back to the floors, which is precisely
the state this job reached. The owner differs from the ledger for 1b779dc9 on purpose: that head had
a learned bar and a dashboard-only verdict, so #121090 covered it, whereas this head published two
slower and four unstable queries off the floors, which #121090 does not filter.

Not reachable from the diff. This pull request changes one file,
tests/performance/index_bulk_filtering.xml, and that fixture ran on this very shard with all six of
its rows green (#0, #1, #2, each on both sides), so the pinned layout held. The flagged queries
belong to other fixtures and are broadly distributed: over the last 14 days on arm_release,
order_by_read_in_order #1 was called slower on 314 distinct pull requests and unstable on 64,
set_index #1 slower on 156 and unstable on 254, and timeseries_to_grid_aggregation_functions #0
unstable on 88.

Session id: cron:our-pr-ci-monitor:20260923-040203

@PedroTadim

Copy link
Copy Markdown
Member

@groeneai is this PR still needed?

@groeneai

Copy link
Copy Markdown
Collaborator Author

Yes.

Master still has the fixture unpinned, and index_bulk_filtering #0 is still bimodal. On arm_release over the last 48 h, all refs (CIDB): 1057 query runs land at 7-11 ms and 701 at 27-48 ms, with nothing in between.

The dashboard gate keeps reading a flip between those two modes as a real regression. Last night, on an unrelated pull request: https://github.com/ClickHouse/ClickHouse/actions/runs/35910186150/job/107422940157

Dashboard slowdown: index_bulk_filtering #0 0.008 -> 0.033 (+312.8%), tier [confirmed_regression]
Fail [Performance Comparison (arm_release, master_head, 4/6)]
  | 5 too long, 1 slower; 1 confirmed regression(s) on the performance dashboard
  Fail [Check Results]
    Fail [index_bulk_filtering #0]

That exact shape, this fixture the only flagged query and the shard failing on a confirmed regression, occurred in 6 jobs on 6 different pull requests in the last 7 days.

With the pin, all six of the fixture's query rows are success on every one of this PR's five heads, including the current one. The single red check here is the missing-learned-thresholds class from the ledger above, not this fixture.

@PedroTadim

Copy link
Copy Markdown
Member

@rschu1ze one more round of review?

@PedroTadim
PedroTadim disabled auto-merge September 24, 2026 13:31
@PedroTadim
PedroTadim added this pull request to the merge queue Sep 24, 2026
@PedroTadim

Copy link
Copy Markdown
Member

Good to merge

Merged via the queue into ClickHouse:master with commit d6961de Sep 24, 2026
172 checks passed
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 24, 2026
@clickhouse-gh clickhouse-gh Bot added comp-skip-index Skipping indexes (minmax, set, bloom) and their evaluation. and removed comp-testing Test content only (no production code). labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-skip-index Skipping indexes (minmax, set, bloom) and their evaluation. groeneai-origin-ci-own-pr PR origin: CI on a groeneai PR exposed a separate defect pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants