Link Input Singnature to Output signature in UDF #9427
momed-sakka
started this conversation in
Ideas
Replies: 1 comment
-
In general, DataFusion needs to know the entire datatype during planning and so I don't think you can implement this in general as a user defined function -- you would need to figure out the fields first somehow. However, after the newly added #8985 you could compute the appropriate type if the argument was a constant value. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to define a UDF which extract keys and entries from MapArray into a ListArray.
However creating a UDF requires specification of input types and return_types DataTypes. In this case I need to know the underlying datatypes (keys, values) of the input MapArray beforehand. is there a way to link input signature to the udf output ?
Beta Was this translation helpful? Give feedback.
All reactions