Skip to content

Dynamically size bloom filter in parquet writer - #119230

Merged
alexey-milovidov merged 36 commits into
ClickHouse:masterfrom
original-brownbear:smarter-bloom-filters
Oct 2, 2026
Merged

alexey-milovidov merged 36 commits into
ClickHouse:masterfrom
original-brownbear:smarter-bloom-filters

Conversation

@original-brownbear

@original-brownbear original-brownbear commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Pretty much the same solution as used by arrow (e.g. in apache/arrow-rs#9628) adapted for the current codebase.

Instead of using a hash set of hashes which is heavy weight in both runtime and memory, use bloom filter folding to arrive at approximately the same result. File size and filter quality (false positive rate) should on average only deviate slighly (~by the fpp of the filter when testing the hits dataset as in https://clickhouse.com/blog/clickhouse-release-25-02) from the previous solution, writing is much faster and the worst case memory consumption lower than before and free of degenerate cases like #105295.
It might be a good idea to move the setting from bits/value to something like "maximum false positive probability" since deduplication as well as this solution both make that setting rather hard to interpret (and the current comment on it maps to fpp anyways). That would simplify the code and reasoning a bit.

Closes: #105295

Edit:

In fact, looking at the "benchmark" results again, for the hits test data the results from this actually beat current master in every dimension. Writing runs slightly faster (~10%), the resulting files are the same size (this one is slightly smaller actually):

10773740        hits_master.parquet
10720768        hits.parquet // this branch

But the filter seems visibly better:

master's output file queries as:
1 row in set. Elapsed: 0.121 sec. Processed 1.13 million rows, 2.41 MB (9.30 million rows/s., 19.90 MB/s.)
Peak memory usage: 96.52 MiB.

while this branch quieries half as many rows:

1 row in set. Elapsed: 0.081 sec. Processed 657.40 thousand rows, 1.32 MB (8.12 million rows/s., 16.35 MB/s.)
Peak memory usage: 62.99 MiB.

I think this makes sense (although the exact order of the improvement is impossible to predict). Initially, the logic here filters out more quasi duplicates because it deduplicates on a subset of the bits in the hash (the set that eventually matters for the bloom filter) vs. all bits for the hash-set based solution. The folding then on average produces the about the same size of filter but for each chunk written varies based on the actual collisions in the data. So degenerate cases analogous to the one in #105295 where a lot of collisions happen in the bloom filter (but not the hashes outright) result in a smaller filter here and there, while cases on the other end of the spectrum where the fill rate is higher from fewer collisions result in a larger filter (statistically speaking) which is more accurate.

Tests: 05194_parquet_write_bloom_filter_folding covers that a column chunk with 4 distinct values still gets a small filter (asserted from ParquetMetadata: at least 16x smaller than the filter of an all-distinct column in every row group) and that folding never drops a value: every probe against the folded column finds its 500 matching rows and reads exactly the one row group holding them, for the default 10.5 bits per value and for a dense filter with 4 bits per value. The filter sizes in 03263_parquet_write_bloom_filter are updated for the two column chunks that now fold down. 05213_parquet_write_bloom_filter_sparse_nested checks that the null and empty-array placeholders of a nested leaf do not count towards the initial filter size. A column chunk that would need a filter above the 128 MiB reader cap gets none, as before; 05238_parquet_write_bloom_filter_over_cap pins that (no filter for two over-cap column chunks, a folded one for a leaf under the cap with the same values, and reads of the file still succeed). The performance test parquet_write_bloom_filter runs the export of #105295 (generic and hash set adversarial data).

Changelog category (leave one):

  • Performance Improvement

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

Speed up writing Parquet bloom filters: instead of deduplicating the value hashes in a hash set to determine the filter size, the writer now builds a filter sized for the number of values and folds it down to the size implied by output_format_parquet_bloom_filter_bits_per_value. This removes the worst case slowdown on data that is adversarial for the hash set, and lowers the worst case memory usage.


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

Version info

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

Instead of using a hash set of hashes which is heavy weight in both runtime
and memory, use bloom filter folding to arrive at approximately the same
result. File size and filter quality should on average only deviate slighly (~by the fpp of the filter)
from the previous solution, writing is much faster and the worst case memory consumption
lower than before and free of degenerate cases like ClickHouse#105295.

Closes ClickHouse#105295

bck

bck

bck

bck

bck
@clickhouse-gh clickhouse-gh Bot added the comp-formats Input/output formats (CSV/JSON/Parquet/ORC/Arrow/Protobuf/etc.). label Sep 10, 2026
@CLAassistant

CLAassistant commented Sep 11, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@clickhouse-gh clickhouse-gh Bot added the external Author is not a member of the ClickHouse organization label Sep 11, 2026
@maxknv maxknv removed the external Author is not a member of the ClickHouse organization label Sep 11, 2026
@clickhouse-gh clickhouse-gh Bot added the external Author is not a member of the ClickHouse organization label Sep 11, 2026
@alexey-milovidov alexey-milovidov added the can be tested Allows running workflows for external contributors label Sep 12, 2026

@alexey-milovidov alexey-milovidov left a comment

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 idea looks nice. We will need at least some tests.

@clickhouse-gh

clickhouse-gh Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [da2e406]

Summary: ✅


AI Review

Summary

This PR replaces hash-set-based distinct-count estimation in the Parquet writer with an oversized split-block bloom filter that is folded down after writing, switches sparse nested sizing to the actual hashed leaf-value count, and adds focused regression coverage for folded, sparse, and over-cap filters. After reading the current diff and the full thread history, I do not see any unresolved correctness, compatibility, or performance-contract violations in the current code.

Final Verdict
  • Status: ✅ Approve
  • Minimum required actions: None.

LLVM Coverage Report

Measured on commit da2e406.

Metric Baseline Current Δ
Lines 88.30% 88.30% +0.00%
Functions 91.80% 91.80% +0.00%
Branches 79.70% 79.70% +0.00%

Changed lines: Changed C/C++ lines covered: 78/79 (98.73%) · Uncovered code

Full report · Diff report

@original-brownbear

Copy link
Copy Markdown
Contributor Author

Sure thing @alexey-milovidov I can look into some tests. I think the existing functional tests reproduce the false-negative failure case (with bloom filters active by default on parquet)? So I assume we'd want some unit tests that make sure the folding/sizing math works out?

alexey-milovidov and others added 2 commits September 12, 2026 14:38
`finishBloomFilter` folds the written filter down, so two of the column
chunks in `03263_parquet_write_bloom_filter` now get a 128-byte filter
instead of a 256-byte one; the reference is updated accordingly (the
`miss` probes still prune every row group).

The new test `05194_parquet_write_bloom_filter_folding` covers the two
properties folding must preserve: a chunk with few distinct values still
gets a small filter without deduplicating hashes in a hash set first, and
folding never drops a value, so a row group holding a matching value is
never pruned - checked for the default 10.5 bits per value and for a
dense filter with 4 bits per value.

Also hoist the `salt` table out of the per-value loop and fix two typos
in the comment of `finishBloomFilter`.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Merged master (the branch was ~1700 commits behind), added the tests @alexey-milovidov asked for, and filled in the changelog category (the Config Workflow / Finish Workflow reds were the missing category and entry in the PR body, not the code).

  • 05194_parquet_write_bloom_filter_folding covers the two properties folding has to preserve: a duplicate-heavy column chunk still gets a small filter without a hash set of hashes, and folding never drops a value, so a row group holding a matching value is never pruned - checked both for the default 10.5 bits per value and for a dense filter with 4 bits per value, plus a check that absent values are still pruned everywhere.
  • 03263_parquet_write_bloom_filter needed its reference updated: two of the column chunks now fold down from 256 to 128 bytes of filter. The miss probes still prune every row group.
  • Hoisted the salt table out of the per-value loop and fixed two typos in the comment of finishBloomFilter.

Verified locally: 05194_..., 03263_..., 02718_parquet_metadata_format, 04646_parquet_v3_bloom_filter_null_safety, 04097_parquet_bloom_filter_overlapping_ranges, 04654_parquet_bloom_filter_bitset_out_of_bounds all pass.

I also answered the open question about the 128 MiB limit in the review thread: it can't be raised (arrow's reader requires it), but it is now applied to the number of values rather than the number of distinct values.

@clickhouse-gh clickhouse-gh Bot added the pr-performance Pull request with some performance improvements label Sep 12, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing da2e406d0 with master 37c7e090d (stripped binary size, per-symbol sizes and ThinLTO time; object sizes against the warmup build of d96270ddd; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Object file sizes

16169 object files changed (+4.87 MiB total), 0 added.

Object file Master PR Δ
src/CMakeFiles/dbms.dir/Processors/Formats/Impl/Parquet/Write.cpp.o 1.04 MiB 1.06 MiB +23.70 KiB (+2.23%)

716 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only clickhouse-bundle) and not compared.

Compile time of recompiled translation units

10 translation units recompiled, 35 s compile time in total, 10 of them have a recent master baseline.

Median compile-time ratio to the baselines is ×1.06 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio.
The matched translation units cost +2.7 s (+8%) in total before that adjustment.

Job report

@clickhouse-gh

clickhouse-gh Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

📊 Cloud Performance Report

✅ AI verdict: no_change — no significant changes across 38 queries analysed

no significant changes detected. K_source=6 K_base=30 flagged=0/65

clickbench

🟢 No significant changes

tpch_adapted_1_official

🟢 No significant changes

Debug info
  • StressHouse run: 1450fe71-4a1a-46db-a6ed-e353c78d3d8b
  • MIRAI run: c8e81a00-f79d-4910-bf56-b2a72f902ae1
  • PR check IDs:
    • clickbench_2728722_1790859047
    • clickbench_2728734_1790859047
    • clickbench_2728740_1790859047
    • tpch_adapted_1_official_2728765_1790859047
    • tpch_adapted_1_official_2728794_1790859047
    • tpch_adapted_1_official_2728809_1790859047

alexey-milovidov and others added 2 commits September 13, 2026 10:01
…exercise the folded filter

The test `05194_parquet_write_bloom_filter_folding` failed in every stateless
CI job of ClickHouse#119230:

* it spawned 150 `clickhouse-client` processes, one per probe, and timed out
  after 600 s in the flaky check with sanitizers - now all probes of a file
  run in a single client invocation, ~3.6 s in total;
* its `ParquetMetadata` query used two `ARRAY JOIN` clauses and dotted tuple
  access, which the old analyzer does not support - now it uses nested
  `arrayJoin` and `tupleElement` calls;
* as the AI review pointed out, the soundness probes queried the all-distinct
  column `u`, whose filter is never folded, so the "folding never drops a
  value" contract was not exercised. The probes now query a column `c` with
  only 4 distinct values per row group, and the test first asserts from
  `ParquetMetadata` that the filter of `c` is at least 16x smaller than the
  one of `u` in every row group before using the hits as coverage. Every
  value of `c` lives in exactly one row group, so the probe must return 500
  matching rows, and it must read exactly that row group.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=119230&sha=27971ad63b171d78e363f22732578fbde37b313a&name_0=PR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20flaky%20check%29

Co-Authored-By: Claude Fable 5.1 <[email protected]>
alexey-milovidov and others added 2 commits September 13, 2026 23:13
…folding`

The flaky check ran the test in 380-450 s and failed it with `Test runs too long (> 180s)`:
each of the 300 probe queries over the Parquet file takes about a second on a loaded CI
machine, while the two `INSERT`s and the two `ParquetMetadata` queries take a few seconds
in total. The filter sizes of all 100 row groups are still verified; only the probes are
reduced to every 10th row group (30 queries), and the false-positive tolerance of the
summaries is tightened from 2 to 1 probe accordingly.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=119230&sha=7c94b933834bfc6cc294d26d977fac135117197c&name_0=PR&name_1=Stateless%20tests%20(amd_binary%2C%20flaky%20check)
PR: ClickHouse#119230

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Merged master (the branch was 223 commits behind) and fixed the only red that belongs to this PR.

  • All five Stateless tests (…, flaky check) failures were 05194_parquet_write_bloom_filter_folding running 380-450 s and hitting the Test runs too long (> 180s) limit. From query_log: the two INSERTs and the two ParquetMetadata queries take a few seconds together, but each of the 300 probe queries over the Parquet file takes about a second on a loaded CI machine. The test now still checks the filter sizes of all 100 row groups, but probes only every 10th row group (30 queries instead of 300), with the false-positive tolerance tightened accordingly. Locally it runs in ~1.1 s and passes 5 randomized runs plus the old analyzer.
  • AST fuzzer (amd_debug, targeted): Server unresponsive: memory limit exceeded with no query attributed - this is the fleet-wide failure tracked in AST fuzzer: server stuck above its memory limit after the fuzz run kills the job before artifacts upload (unattributable MEMORY_LIMIT_EXCEEDED failures) #111892 and not related to the Parquet writer.
  • Resolved the 128 MiB cap thread (we agreed a clamp, if ever needed, is a separate PR) and replied on the AI review's skewed-block finding: block selection is uniform over the hash bits, so per-block loads concentrate around the mean and the global fill rate is the right statistic for the fold decision.

alexey-milovidov and others added 2 commits September 22, 2026 18:41
…riter

`05218_parquet_write_bloom_filter_over_cap` was removed together with the
clamp it asserted, which left the reader-side cap (at most 4 Mi blocks,
128 MiB of filter) without functional coverage. The new
`05238_parquet_write_bloom_filter_over_cap` pins the current contract: a
column chunk whose initial filter would exceed the cap gets no bloom filter
at all, whether it holds eight distinct values or only distinct ones, while
a leaf under the cap with the same values still gets a folded filter. It
also probes the file with only bloom filter pruning enabled and checks that
the reads succeed and scan the whole file.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Pushed 49c790e: merged master (clean) and added 05238_parquet_write_bloom_filter_over_cap, the regression test for the reader cap that the AI review asked for after 05218 was dropped with the clamp. It asserts the current behaviour (no bloom filter for an over-cap column chunk, a folded one for a leaf under the cap, reads still succeed). The four bloom filter tests pass locally on the rebuilt binary, the new one also with randomized settings.

Reds on 3c12980, none from this PR:

  • Stress test (arm_release) segmentation fault in StorageDistributed::getQueryProcessingStage from ExecuteScalarSubqueriesMatcher while InterpreterCreateQuery::getConstraintsDescription analyzes a CHECK constraint: that is the crash fixed by Fix a crash when a CHECK constraint's scalar subquery reads a Distributed table #121418 (open). Re-merging master once it lands.
  • Performance Comparison (amd_release, 4/6) sparse_column_index_runs #4 +19.4% and (arm_release, 4/6) optimize_time_filter_with_preimage #6 +23.4%: neither query touches the Parquet writer, both tests are noisy on master every day of the last two weeks (CIDB, pull_request_number = 0). The arm shard's "1 error" is a CIDB Read timed out in the report step. The only Parquet query in that shard, parquet_write_bloom_filter #0, is reported 36% faster.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Merged master (clean) -> e1fbbea156b8. master changed only the Parquet reader (Reader.cpp/ReadManager.cpp) since the last merge, so I rebuilt and reran 03263, 05194, 05213, 05238 locally: 12/12 pass (3 runs each).

The only reds on 59149a0b were performance-comparison queries that don't touch Parquet writing (set_index #0 on amd, timeseries_to_grid_aggregation_functions #6 on arm). The fresh run will re-check them.

The remaining AI "Request changes" item (live accounting for the under-cap unfolded filter) is still waiting on @rschu1ze. He asked for the memory callback to be removed, and my reply is in the thread. All 16 of his threads have replies and are waiting on his re-review.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Status for e1fbbea156b8 (nothing new to push):

  • Performance Comparison (arm_release, master_head, 6/6) is red only because of improvements: parquet_write_bloom_filter #0 is 1.63x faster (this PR's own perf test, which is the intended effect) and number_formatting_formats #9 (Parquet INSERT) is 1.46x faster. There are no slower queries.
  • Stress test (amd_asan_ubsan): Logical error: 'Equal values are not contiguous within the range assumed to be sorted' (STID: 2508-3319) in DistinctSortedStreamTransform. This is unrelated to the Parquet writer. It has shown up on about 30 PRs and on master itself (2026-09-14, 2026-09-25) over the last 20 days, and the previous tracker Logical error: 'Equal values are not contiguous within the range assumed to be sorted' (STID: 2508-3319) #115455 is closed.

@groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=119230&sha=e1fbbea156b849d3aba25cc740738750d02f835a&name_0=PR&name_1=Stress%20test%20%28amd_asan_ubsan%29 and provide a fix in a separate PR. If the fix is already in progress, link it here.

Review state is unchanged. All 17 open threads end with my replies, and they are waiting for @rschu1ze to review again. The AI review still asks for live accounting of the under-cap unfolded filter. That would bring back the memory-usage callback that @rschu1ze asked us to remove, so I am leaving that decision to him.

@groeneai

groeneai commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

This is a fuzzed copy of the 04870_distinct_merge_over_distributed fixture: dist_distinct__fuzz_1 (s UInt8) ENGINE = Distributed(...) over t_distinct (s String). The shards sort by String, the initiator converts to UInt8 above that sort and merges the streams as sorted, so DistinctSortedStreamTransform meets equal values that are not adjacent.

Your #118445 fixes it (its 05227 has the same query with Int8), so I am not opening a separate PR. On debug builds, the exact failing query, with that run's prefer_localhost_replica = 0 and optimize_read_in_order = 0, aborts with the same frames on master 026dca38e7d1 and gets INCOMPATIBLE_COLUMNS on CI's build of #118445 (6bb07f44cfb1). The matching-type query and the retyped one without ORDER BY still return 21 on both. Both CI runs at 6bb07f44cfb1 are red only because the two targeted Stateless jobs could not load their test selection (a CIDB read timeout that hit 69 PRs between 2026-09-24 09:09 and 2026-09-25 03:01 and has not recurred), which also dropped Bugfix validation, so a re-run should clear it.

The count in your comment spans several STIDs of this message. 2508-3319 itself has 6 hits in 20 days, none on master, and 5 of them are this same fixture (the sixth has an empty fatal.log). The two branch hits are other STIDs:

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Thanks @groeneai. So the Stress test (amd_asan_ubsan) red (Equal values are not contiguous, STID 2508-3319) comes from a fuzzed Distributed table whose declared type breaks the shards' sort order. It is unrelated to the Parquet writer, and it will be fixed by #118445, which is still open. I will merge master into this branch once #118445 lands.

Nothing else has changed for e1fbbea156b8. The other red is Performance Comparison (arm_release), which shows only improvements. All 17 open threads end with replies and are waiting for @rschu1ze to review again.

alexey-milovidov and others added 2 commits October 1, 2026 04:52
…atedBytes`

- `tests/performance/parquet_write_bloom_filter.xml`: the table population
  timed out in the performance comparison, so insert one third of the rows
  and use `ENGINE = Memory` instead of `MergeTree`.
- `ColumnChunkWriteState::allocatedBytes`: remove the extra accounting of
  the folded bloom filter, as requested by the reviewer.

https://s3.amazonaws.com/clickhouse-test-reports/PRs/119230/e1fbbea156b849d3aba25cc740738750d02f835a/pr/performance_comparison_arm_release_master_head_6_6/report.html
PR: ClickHouse#119230

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/PRs/119230/df43335dba7c67766697ea9e04eae4ca30c05d6d/pr/result_stress_test_amd_debug.json (Stress test (amd_debug): Hung check failed, possible deadlock found. The hung check itself was rejected with MEMORY_LIMIT_EXCEEDED at 38.83 GiB, which looks like the case in #117995) and provide a fix in a separate PR. If the fix is already in progress, link it here.

The other red, Performance Comparison (amd_release, master_head, 4/6), is the job running out of time (7231 s) while it was generating the report plots. It did not record any query regression. The other amd shards show only this PR's own speedups (parquet_write_bloom_filter #1 is 77x faster, #0 is 1.8x faster). I merged master again (da2e406, clean) to start a new CI run.

@groeneai

groeneai commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

The fix is in progress: #123238.

In this run's stress log, two 05258_freeform_schema_inference_search_bound queries (desc file(..., 'Freeform') settings max_memory_usage = 150000000) were still inside the structure search when the log ends, 39 and 35 minutes after they started, despite their 60 s time limit and two KILL QUERY attempts each from the stress runner. In trace_log, 108 of the 182 updates of the global memory peak in the last three minutes (21.9 GiB to 33.8 GiB) come from these two queries. This run's 05258 queries carry compatibility = '24.9', which sets input_format_freeform_max_search_steps = 0, so the search is unbounded, and it does not stop at the memory limit, the time limit or KILL. #123238 adds those checks. It is the same cause as the Stress test (arm_release) hung check on #118536.

It is not the drifted-tracker case of #117995: current RSS equals would use (42.61 GiB), so the memory is really held. With #117995 the row would get a different name but would still fail.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Thanks @groeneai for tracking the Stress test (amd_debug) hung check to the unbounded Freeform schema inference in 05258_freeform_schema_inference_search_bound (fix in #123238). It is unrelated to the Parquet writer. The new CI run on da2e406 is fully green, including Performance Comparison with the lighter parquet_write_bloom_filter test (ENGINE = Memory, one third of the rows), so I resolved the two remaining review threads, which were addressed in c12dee1.

@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Oct 1, 2026
Merged via the queue into ClickHouse:master with commit bd0f57a Oct 2, 2026
150 checks passed
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 2, 2026
@adriangb

Copy link
Copy Markdown

Hi, original author of apache/arrow-rs#9628 here 👋🏻
Very cool to see this idea percolating into ClickHouse, I'm glad it's useful and being adopted across the industry!

Did I understand correctly that this change resulted in some pretty substantial improvements in general Parquet write performance?

@alexey-milovidov

Copy link
Copy Markdown
Member

@adriangb, thank you! Yes, the performance tests show massive improvements: https://performance.ci.clickhouse.com/runs/pr-119230-da2e406d0334149b0c860f994765e8fc876f447d

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-formats Input/output formats (CSV/JSON/Parquet/ORC/Arrow/Protobuf/etc.). external Author is not a member of the ClickHouse organization pr-performance Pull request with some performance improvements 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.

Excessive worst-case slowdown of Parquet Bloom Filter writing

8 participants