Repository navigation
Conversation
Contributor
Add a write buffer that reports the on-disk size its input would compress to. It uses tryGetCompressedSize when the codec can predict its size cheaply (T64), and falls back to actual compression otherwise. The estimateCompressionRatio now uses it instead of compressing through a discarded NullWriteBuffer
CompressionCodecAdaptive::compress now runs AdaptiveCodec::select on every block instead of short-circuiting to the deployment default below a size threshold. The skip_threshold member is removed. It's not worth keeping: per-block selection cost scales with the block, so small blocks are the cheapest to evaluate, and strict-min selection with the deployment default at already falls back to the default whenever a candidate's header overhead would make it lose. A floor only saved the cost of confirming the default, which is smallest exactly where it applied.
This reverts commit 10ea75a.
Contributor
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 766/805 (95.16%) · Uncovered code |
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Member
Author
|
Closing as experimental feature was shipped |
rorylshanks
pushed a commit
to rorylshanks/ClickHouse
that referenced
this pull request
Aug 4, 2026
Explicit heading anchors must use kebab-case per docs/README.md
(`# Title {#anchor-name}`). Fix anchors that used underscores as word
separators where the heading auto-slug uses hyphens, e.g.
`## Returned value {#returned_value}` -> `{#returned-value}`.
Scope: anchors equal to the heading auto-slug except for _ vs -.
60 heading anchors across 51 files plus 25 internal links that point to
them updated together. Code-identifier anchors (settings, codecs,
metrics) and legacy namespace-prefixed stable IDs are left unchanged.
Requested in ClickHouse#105945.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
This branch was successfully deployed
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.
Split into multiple smaller PRs:
estimateCompressionRatioforT64-encoded columns #109054mergeTreeCodecBlockCountstable function #109623estimateCompressionRatiowith theNONEcodec #111107CompressionCodecAdaptivewith per-block codec selection #111134Experimental feature was shipped. Below I will list the PRs that were merged after adaptive compression became experimental but before it became beta (if I don't forget).
ALPto the adaptive codec pool forFloat32/Float64#117553T64decompression #120414ALP(AUTO)as the onlyALPcandidate in the adaptive codec pool #122248CANNOT_COMPRESSwithCODEC(T64)on aMapwith bucketed serialization #124695Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...