-
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
[Epic] Complete pulling out special SQL planning from the Sql Parser #11207
Comments
#11208 allows user defined sql planners to be defined. |
See datafusion-contrib/datafusion-functions-json#26 - support for custom SQL operators in |
hello @alamb Just checking in on the remaining tasks. Is there anything specific we're waiting on before we create issues ? |
Hi @dharanad I don't think there is anything from my perspective. Thank you for offering In fact it seems as if @xinlifoobar has already started with #11215 ❤️ |
I've created issues for a couple of tasks. Please let me know if you think anything needs updating in the descriptions. I'm new here and learning from shadowing the experienced folks
|
thank you @dharanad -- this is very helpful 🙏 |
FWIW in general @dharanad I have had the best luck with writing a description on tickets that requires as little context as possible (aka distill down what is needed into the the description, rather than assuming the new contributor will read the epic and get all the backstory) The rationale for this duplication is to lower the barrier to new contrbutors |
Thanks for the feedback! I really appreciate. You're right, making the ticket description concise and self-contained will definitely help reduce the barrier for new contributors. I'll update the description to include the necessary context. Thanks you |
Create issues for the remaining tasks, tried adding a description based on my understanding of the issue. Also update the same for the older ones
|
Given how much |
I agree Or maybe something like |
|
Given #11220 and #11243, those are very similar APIs with UDF plans. I am trying to draft an API, e.g.,
to uniform the usages. I have created a draft PR #11263 to discuss this. The flaw here is that the parameter |
Eventually, I made this #11263, please let me know your thoughts. Thanks :) |
Filed #11304 |
I think we are pretty close to calling this done. I just double checked and datafusion/datafusion/sql/src/expr/identifier.rs Lines 138 to 139 in bfd8156
That appears to be the last issue |
Filed #11473 |
I think we can claim we are done 🎉 thanks everyone |
Is your feature request related to a problem or challenge?
As discussed in #10534, @jayzhan211 added a
UserDefinedSQLPlanner
in #11180 so that the translation of certain SQL sytanx toLogicalPlan
s andExpr
s are not hard coded inSqlToRel
but instead are controlled by aUserDefinedSQLPlanner
Now that we have the pattern, we need to move the other remaining functionality that is hard coded (e.g. looking up a function "date_part" by name) in SqlToRel to the UserDefinedSQLPlanner
Describe the solution you'd like
To rewrite with sql planner
date_part
#11220create_struct
#11221create_named_struct
#11222ExprPlanner
forsql_overlay_to_expr
#11223UserDefinedSQLPlanner
toExprPlanner
#11304sql_compound_identifier_to_expr
toExprPlanner
#11473SessionState::new()
#11216UnicodePlanner
rather than aPositionPlanner
? #11305derive(Copy)
fromOperator
(#11132)" #11341Describe alternatives you've considered
No response
Additional context
Discussion is here: #10534
The text was updated successfully, but these errors were encountered: