-
As for now, most datafusion udfs are focusing on data. When I'm going to implement some functions like For example, in MySQL Another use case is to access time-zone or locale settings from current session when implementing a date/time related function. While the function system is under a major refactoring, you may want to add this feature into consideration. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @sunng87 -- I think the built in In particular it gets access to https://docs.rs/datafusion/latest/datafusion/execution/context/struct.ExecutionProps.html I wonder if you could use the |
Beta Was this translation helpful? Give feedback.
Hi @sunng87 -- I think the built in
now()
function does something similar -- specifically it needs to know the session start time from the session context.In particular it gets access to https://docs.rs/datafusion/latest/datafusion/execution/context/struct.ExecutionProps.html
I wonder if you could use the
var_providers
mechanism or maybe we need to plumb the ExecutionProps into UDFs somehow