How to pass down custom expression to physical plan? #14293
-
|
Hello community! I have a:
Currently, I am using UDF to implement the expression, but it would be invoked directly instead of passing down to my table provider. What's the appropriate way to do this? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
alamb
Mar 10, 2025
Replies: 1 comment
-
|
I suggest rewriting such expressions as a In terms of converting your SQL to the function, perhaps you could use a custom expr planner: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Jefffrey
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I suggest rewriting such expressions as a
ScalarFunctionImpl- then the rest of datafusion will treat it just like any other UDFIn terms of converting your SQL to the function, perhaps you could use a custom expr planner:
https://docs.rs/datafusion/latest/datafusion/execution/trait.FunctionRegistry.html#method.register_expr_planner