Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change nulls array in all blocks from boolean[] to byte[] #22586

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dain
Copy link
Member

@dain dain commented Jul 5, 2024

Description

Change nulls array in all blocks from boolean[] to byte[]. Boolean array type is not very well supported in MemorySegment or vector APIs.

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

# SPI
* Change nulls array in all blocks from boolean[] to byte[]. ({issue}`issuenumber`)

@dain dain requested a review from wendigo July 5, 2024 05:28
@cla-bot cla-bot bot added the cla-signed label Jul 5, 2024
@github-actions github-actions bot added delta-lake Delta Lake connector hive Hive connector labels Jul 5, 2024
* This method is used to perform that conversion until the Block implementations are changed.
*/
static Optional<ByteArrayBlock> getNulls(@Nullable boolean[] valueIsNull, int arrayOffset, int positionCount)
static Optional<ByteArrayBlock> getNulls(@Nullable byte[] valueIsNull, int arrayOffset, int positionCount)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, please also simplify IsNullColumnarFilter and IsNotNullColumnarFilter to not do the extra mayHaveNull check. I realised now that it was unnecessary.

@wendigo
Copy link
Contributor

wendigo commented Jul 5, 2024

Change seems mostly mechanical. We should get this in.

@losipiuk
Copy link
Member

losipiuk commented Jul 7, 2024

Looks nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed delta-lake Delta Lake connector hive Hive connector
Development

Successfully merging this pull request may close these issues.

4 participants