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

Implement Bool8 #212

Merged
merged 9 commits into from
Aug 8, 2024
Merged

Implement Bool8 #212

merged 9 commits into from
Aug 8, 2024

Conversation

chmp
Copy link
Owner

@chmp chmp commented Aug 7, 2024

#211

Details from the PR defining the extension type:

Bool8 represents a boolean value using 1 byte (8 bits) to store each value instead of only 1 bit as in the original Arrow Boolean type. Although less compact than the original representation, Bool8 may have better zero-copy compatibility with various systems that also store booleans using 1 byte.

  • Extension name: arrow.bool8.
  • The storage type of this extension is Int8 where:
    • false is denoted by the value 0.
    • true can be specified using any non-zero value. Preferably 1.
  • Extension type parameters: This type does not have any parameters.
  • Description of the serialization: Metadata is an empty string.

Impls:

  • Test that bool can serialized / deserialized into I8 arrays
  • Test that any non-zero value is deserialized as true
  • Implement extension type
  • Add docs how to use the extension type with overwrites

@chmp chmp marked this pull request as ready for review August 8, 2024 07:58
@chmp chmp merged commit 8e4ccf4 into main Aug 8, 2024
1 check passed
@chmp chmp deleted the feature/211-bool8 branch August 8, 2024 08:09
@chmp chmp mentioned this pull request Aug 8, 2024
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.

1 participant