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 function #11081

Open
gstvg opened this issue Jun 23, 2024 · 3 comments · May be fixed by #12116
Open

Add union_extract function #11081

gstvg opened this issue Jun 23, 2024 · 3 comments · May be fixed by #12116
Assignees
Labels
enhancement New feature or request

Comments

@gstvg
Copy link
Contributor

gstvg commented Jun 23, 2024

Is your feature request related to a problem or challenge?

Retrieve the value of the given union variant, or NULL if it's not currently selected

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

DuckDB has such function, I propose using the same name
https://duckdb.org/docs/sql/functions/nested.html#union_extractunion-tag

@gstvg gstvg added the enhancement New feature or request label Jun 23, 2024
@gstvg
Copy link
Contributor Author

gstvg commented Jun 23, 2024

take

@tobixdev
Copy link
Contributor

tobixdev commented Jan 8, 2025

Hi @gstvg!

I have a question regarding this issue. We are currently working on a prototype that would require "ergonomic" handling of unions for filtering etc. I understand that you have implemented a union_extract kernel in arrow-rs. Is there a reason on why the API of using this kernel wasn't merged into DataFusion? Or is there already another way to achieve the semantics of extract_union?

I'd also be happy to give a hand if there's something that I could do.

@gstvg
Copy link
Contributor Author

gstvg commented Jan 14, 2025

Hi @tobixdev

My bad, the arrow kernel ended up being enough for me and I got busy with other work, leaving this for later. I'm already started updating #12116, I should push it soon. I'll ping you there in case you wanna take a look

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

Successfully merging a pull request may close this issue.

2 participants