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

Expose the ability to choose a Dense UnionArray #235

Open
v1gnesh opened this issue Sep 3, 2024 · 0 comments
Open

Expose the ability to choose a Dense UnionArray #235

v1gnesh opened this issue Sep 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@v1gnesh
Copy link
Contributor

v1gnesh commented Sep 3, 2024

I see there's some plumbing for Dense UnionArray, but narrow currently defaults to Sparse UnionArray.
Where enums have dozens to hundreds of variants, Sparse, unlike the name suggests, "asks" for all variants' child arrays to be filled up, which is currently being done via Default.

In such cases, the ability to ask for a dense UnionArray via an attribute macro will be handy :)

@mbrobbel mbrobbel added the enhancement New feature or request label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants