You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Chen-Yuan-Lai I think we need to add methods for NullBufferBuilder and not make the inner builder public.
NullBufferBuilder may not have bitmap_builder if all we only append true (materialize is not called), so we need if-else to handle non-materialized case
FWIW I think the list of functions listed above are good and straightforward to add to NullBufferBuilder.
There are some function in Datafusion that I think might be too special purpose (aka only DataFusion would use them) such as take_n and thus probably don't belong in arrow-rs unless we have evidence others would use them
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
To replace
NullBufferBuilder
withBooleanBufferBuilder
for optimization in DataFusion , some public methods are needed to be implemented inNullBufferBuilder
withBooleanBufferBuilder
to access inner builder.Describe the solution you'd like
I would like to add methods like
BooleanBufferBuilder
:get_bit()
capacity
truncate()
Describe alternatives you've considered
Other strategies below also may access the inner builder:
Additional context
Related issue
Use NullBufferBuilder instead of BooleanBufferBuilder for creating Null masks #14115
The text was updated successfully, but these errors were encountered: