feat: Actually decode dictionary arrays#861
Merged
paleolimbot merged 27 commits intoapache:mainfrom Apr 18, 2026
Merged
Conversation
213584c to
0e69e58
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #861 +/- ##
==========================================
- Coverage 79.96% 79.44% -0.53%
==========================================
Files 105 106 +1
Lines 15461 15881 +420
Branches 1738 1834 +96
==========================================
+ Hits 12364 12616 +252
- Misses 1998 2115 +117
- Partials 1099 1150 +51 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
Author
|
I'm pretty happy with this! If there are no objections I'll merge later today and move on to the shared dictionary problem. |
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.
This PR uses the previous steps to output arrays (including the ArrowArrayStream reader). This lets us wire it in to all the tests as well.
The main follow up is that this PR currently deep copies the dictionary for every batch that arrives, negating much of the point of dictionary encoding. This is a fairly self-contained change that I'll do separately: #864
I also added dictionary index validation while I was here! It is fairly compact (compared to the other code).
Closes #845.