Repository navigation
Add ALP to the adaptive codec pool for Float32/Float64 - #117553
Conversation
|
Workflow [PR], commit [00a7c03] Summary: ✅
AI ReviewSummaryThis PR extends PR Metadata
Findings
Tests
Final VerdictChanges requested. LLVM Coverage ReportMeasured on commit 00a7c03.
Changed lines: Changed C/C++ lines covered: 22/22 (100.00%) · Uncovered code |
|
Thank you @Algunenano |
| {"T64", T64_TYPES}, | ||
| /// Do not use AUTO as it picks STD or RD per block from a sample. With sampled adaptive compression, that is sample of a sample. | ||
| /// STD before RD because STD decompressed faster (we want it in case of tie). | ||
| {"ALP(STD)", ALP_TYPES}, |
There was a problem hiding this comment.
ALP is still a gated beta codec: the docs say it requires enable_alp_codec = 1, and the existing stateless coverage checks that every entrypoint which can start writing ALP enforces that gate. Adding ALP(STD) / ALP(RD) here bypasses that contract, because buildCodecForType goes through CompressionCodecFactory::get directly instead of validateCodecAndGetPreprocessedAST, so enable_adaptive_codec_selection = 1 can now write ALP blocks even when enable_alp_codec = 0.
That also changes the upgrade behavior of existing tables. enable_adaptive_codec_selection already exists, and the backward-compatibility test for it still runs old replicas on 25.3; after this change, a new node can merge a float column into ALP and hand the part to a replica that predates ALP. Please keep ALP out of the adaptive pool unless there is a stored opt-in / compatibility gate for it, and add a float case to tests/integration/test_backward_compatibility/test_adaptive_codec.py when this path is made safe.
There was a problem hiding this comment.
This one is interesting, but enable_adaptive_codec_selection is experimental so we don't have to worry as bad about backward compatibility, specially while iterating like this
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units8 translation units recompiled, 9 s compile time in total, 8 of them have a recent master baseline. |
With
enable_adaptive_codec_selection, float columns previously selected between the default codec andNONEonly. This addsALP(STD)andALP(RD)to their candidate pool. For example, with TPC-H SF10 this means 64.5% smallerlineitemcolumn in OSS and 41.5% in Cloud (with 3x and 10x warm reads on a single thread, respectively).Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Adaptive codec selection (
enable_adaptive_codec_selection) now considers theALPcodec forFloat32andFloat64columns.Workflow [PR]
Sync PR [sync-upstream/pr/117553]
Version info
26.9.1.539(included in26.9and later)