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

Add union_extract kernel #6386

Closed
gstvg opened this issue Sep 11, 2024 · 2 comments · Fixed by #6387
Closed

Add union_extract kernel #6386

gstvg opened this issue Sep 11, 2024 · 2 comments · Fixed by #6387
Labels
arrow Changes to the arrow crate enhancement Any new improvement worthy of a entry in the changelog

Comments

@gstvg
Copy link
Contributor

gstvg commented Sep 11, 2024

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

Retrieve the value of the given union variant, or NULL if it's not currently selected
This is will be used at apache/datafusion#11081

Describe the solution you'd like

A kernel in arrow_select with the following signature:
fn union_extract(union_array: &UnionArray, field: &str) -> Result<ArrayRef>

Describe alternatives you've considered

Implement this in datafusion, but after comments from @samuelcolvin and @alamb at #6247 (comment) and #6247 (comment), I decided to do here

Additional context

@gstvg gstvg added the enhancement Any new improvement worthy of a entry in the changelog label Sep 11, 2024
@alamb
Copy link
Contributor

alamb commented Sep 16, 2024

I think this is needed for https://github.com/datafusion-contrib/datafusion-functions-json

I will put it on my review queue

@alamb
Copy link
Contributor

alamb commented Oct 2, 2024

label_issue.py automatically added labels {'arrow'} from #6387

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate enhancement Any new improvement worthy of a entry in the changelog
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants