Repository navigation
Do not declare a type for the sparse offsets stream - #118048
Conversation
|
Workflow [PR], commit [7288d62] Summary: ✅
AI ReviewSummaryThis PR removes the declared Tests
Final Verdict
LLVM Coverage ReportMeasured on commit 7288d62.
Changed lines: Changed C/C++ lines covered: 19/19 (100.00%) · Uncovered code |
|
|
||
| bool offsets_have_type = true; | ||
| bool values_have_type = false; | ||
| serialization->enumerateStreams( |
There was a problem hiding this comment.
The PR description claims this fixes enable_adaptive_codec_selection, but this test only checks the internal enumerateStreams metadata. In the current writers, adaptive wrapping only happens under ISerialization::isSpecialCompressionAllowed (src/Storages/MergeTree/MergeTreeDataPartWriterWide.cpp:230-236, src/Storages/MergeTree/MergeTreeDataPartWriterCompact.cpp:95-101), and SparseOffsets is already excluded there (src/DataTypes/Serializations/ISerialization.cpp:562-574). So I can't verify that removing data.type changes any on-disk codec choice. Please add an end-to-end repro around adaptive codec selection, or narrow the PR contract to the metadata cleanup this test actually covers.
There was a problem hiding this comment.
I do not want to mix adaptive compression in the tests. Verifying type is enough
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units7 translation units recompiled, 6 s compile time in total, 7 of them have a recent master baseline. |
SerializationSparsewrites its offsets asVarUInt[1], but declaredUInt64for that stream. The stream is not a subcolumn, so nothing reads the declaration. This PR removes it and adds a regression test.Motivation: adaptive codec selection (
enable_adaptive_codec_selection) picks candidate codecs based on substream's declared type. WithUInt64it triesT64codec, which never wins for the underlyingVarUInt.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Workflow [PR]
Sync PR [sync-upstream/pr/118048]