-
Notifications
You must be signed in to change notification settings - Fork 258
feat: Add expression registry to native planner #2851
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2851 +/- ##
============================================
+ Coverage 56.12% 59.14% +3.01%
- Complexity 976 1471 +495
============================================
Files 119 167 +48
Lines 11743 15235 +3492
Branches 2251 2513 +262
============================================
+ Hits 6591 9010 +2419
- Misses 4012 4942 +930
- Partials 1140 1283 +143 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| // Try to use the modular registry first - this automatically handles any registered expression types | ||
| if ExpressionRegistry::global().can_handle(spark_expr) { | ||
| return ExpressionRegistry::global().create_expr(spark_expr, input_schema, self); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the main change in the planner
|
Should we update the developer guide as part of this? |
Which issue does this PR close?
N/A
Rationale for this change
Similar to the effort of creating the serde framework in Scala, this PR starts a similar process for the native planning code. We currently have >4k LOC in
planner.rsfor handling all supported operations and expressions and this PR introduces a framework to allow us to start moving code into separate files.What changes are included in this PR?
ExpressionRegistryExpressionTypeenum andExpressionBuildertraitHow are these changes tested?