Skip to content

Conversation

@Chen-Yuan-Lai
Copy link
Contributor

…tion function

Which issue does this PR close?

Closes #14115 .

Rationale for this change

As mentioned in #14115, several examples in DataFusion codebase still using BooleanBufferBuilder rather than NullBufferBuilder, they should be replaced with NullBufferBuilder for optimization.

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the functions Changes to functions implementation label Jan 18, 2025
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thanks (again) @Chen-Yuan-Lai

values.into(),
Some(nulls.finish().into()),
)))
Ok(Arc::new(Float64Array::new(values.into(), nulls.finish())))
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️ -- it is great. Again this will avoid creating a NullBuffer if the input had no nulls

@alamb alamb merged commit 5340521 into apache:main Jan 19, 2025
27 checks passed
@alamb
Copy link
Contributor

alamb commented Jan 19, 2025

Thanks again @Chen-Yuan-Lai

@Chen-Yuan-Lai Chen-Yuan-Lai deleted the use_NullBufferBuilder_in_correlation branch February 5, 2025 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Changes to functions implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use NullBufferBuilder instead of BooleanBufferBuilder for creating Null masks

2 participants