Skip to content

Add bool8 extension type support#274

Merged
CurtHagenlocher merged 3 commits intoapache:mainfrom
CurtHagenlocher:bool8
Mar 3, 2026
Merged

Add bool8 extension type support#274
CurtHagenlocher merged 3 commits intoapache:mainfrom
CurtHagenlocher:bool8

Conversation

@CurtHagenlocher
Copy link
Contributor

What's Changed

This PR adds support for the bool8 extension type. The support is off by default.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds support for the arrow.bool8 canonical extension type (1-byte boolean) in the Arrow .NET library and validates round-tripping through the C Data Interface with Python/pyarrow.

Changes:

  • Introduces Bool8ExtensionDefinition, Bool8Type, and Bool8Array (with a builder) backed by Int8Array.
  • Adds C Data Interface Python interop tests to export/import bool8 arrays via pyarrow.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
test/Apache.Arrow.Tests/CDataInterfacePythonTests.cs Adds export/import interop tests for bool8 extension arrays via the C Data Interface.
src/Apache.Arrow/Arrays/Bool8Array.cs Implements the bool8 extension definition/type/array (storage: Int8) and a builder.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@adamreeve adamreeve left a comment

Choose a reason for hiding this comment

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

Looks good to me thanks Curt

@CurtHagenlocher CurtHagenlocher merged commit 3d0c7a2 into apache:main Mar 3, 2026
14 checks passed
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.

3 participants