-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 SessionConfig
reference to ScalarFunctionArgs
#13519
Comments
Well, small issue. |
Great work! |
Started delving into this trying to find a good way to impl. Trying to add |
I wonder if we can use this trait: https://docs.rs/datafusion/latest/datafusion/catalog/trait.Session.html |
We could but it wouldn't solve the issue. The issue is PhysicalExpr requires implementations to impl Eq and Hash or to have implementations for DynEq and DynHash. That is fine until something like SessionConfig which doesn't is introduced. I am looking at updating the either the 'config_namespace' macro or add explicit implementations for 'ScalarFunctionExpr' to try and impl either of the above and use f64.to_bits() and f64::from_bits(..) to handle the problematic f64's in the config. I think it's possible |
It makes sense to me to move |
take |
I agree |
|
Is your feature request related to a problem or challenge?
ScalarUDFImpl::invoke_with_args
to support passing the return type created for the udf instance #13290 is merged (thanks @joseph-isaacs) we have a place to add new@Omega359 noted that by adding
SessionConfig
to theScalarFunctionArgs
unblock several tasks such asdatafusion.execution.time_zone
is not used for basic time zone inference #13212Describe the solution you'd like
Add
&SessionConfig
toScalarFunctionArgs
, and ideally add a test that shows the config gets through.Describe alternatives you've considered
No response
Additional context
We should try and get this done before DataFusion 44 is released so it isn't a breaking change
44.0.0
#13334The text was updated successfully, but these errors were encountered: