datafusion icon indicating copy to clipboard operation
datafusion copied to clipboard

Add `union_tag` function

Open gstvg opened this issue 1 year ago • 1 comments

Is your feature request related to a problem or challenge?

Retrieve the name of the currently selected field on a union

Describe the solution you'd like

Return a dictionary encoded string array using the union array type_ids as the dict keys array

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_tagunion

gstvg avatar Jun 23 '24 15:06 gstvg

take

gstvg avatar Jun 23 '24 15:06 gstvg