Skip to content

[C++] Add OptionalBitmapAnd utility #45819

Description

@pitrou

Describe the enhancement requested

We currently have BitmapAnd utility functions that return the conjunction of two bitmaps.
However, null bitmaps are optional which complicates things when conjoining two null bitmaps. It would be good to centralize that functionality in a dedicated utility function, for example:

ARROW_EXPORT
Result<std::shared_ptr<Buffer>> OptionalBitmapAnd(
    MemoryPool* pool,
    const std::shared_ptr<Buffer>& left, int64_t left_offset,
    const std::shared_ptr<Buffer>& right, int64_t right_offset,
    int64_t length, int64_t out_offset);

Component(s)

C++

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions