Skip to content

feat(internal/encoding): add Discard method to decoders#280

Merged
zeroshade merged 2 commits intoapache:mainfrom
zeroshade:decoder-discards
Feb 17, 2025
Merged

feat(internal/encoding): add Discard method to decoders#280
zeroshade merged 2 commits intoapache:mainfrom
zeroshade:decoder-discards

Conversation

@zeroshade
Copy link
Copy Markdown
Member

Rationale for this change

Building towards proper support for Skipping rows to address #278 we need to be able to efficiently discard values from decoders rather than actively having to allocate a buffer and read into it. This makes the skipping/seeking within a page more efficient.

What changes are included in this PR?

Adding a new Discard method to the Decoder interface along with implementations for all the various decoders

Are these changes tested?

Yes, tests are added for the various decoders.

Are there any user-facing changes?

No, this is in an internal package.

@zeroshade zeroshade merged commit 413bd36 into apache:main Feb 17, 2025
23 checks passed
@zeroshade zeroshade deleted the decoder-discards branch March 27, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants