-
Notifications
You must be signed in to change notification settings - Fork 225
chore: Refactor GetArrayItem, ElementAt, GetArrayStructFields out of QueryPlanSerde #2026
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
…of QueryPlanSerde
case _ @ArrayFilter(_, func) if func.children.head.isInstanceOf[IsNotNull] => | ||
convert(CometArrayCompact) | ||
case _: ArrayExcept => | ||
convert(CometArrayExcept) | ||
case Rand(child, _) => | ||
createUnaryExpr( | ||
expr, | ||
child, | ||
inputs, | ||
binding, | ||
(builder, unaryExpr) => builder.setRand(unaryExpr)) | ||
case expr => | ||
QueryPlanSerde.exprSerdeMap.get(expr.getClass) match { | ||
case Some(handler) => convert(handler) | ||
case _ => | ||
withInfo(expr, s"${expr.prettyName} is not supported", expr.children: _*) | ||
None | ||
} |
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.
I don't think that this section should be deleted
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.
Yes, you're definitely right. Sorry, I think I (incorrectly) assumed I was working at the bottom of the list and deleted those without realizing.
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.
LGTM pending CI. Thanks @petern48
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2026 +/- ##
=============================================
- Coverage 56.12% 38.84% -17.28%
+ Complexity 976 887 -89
=============================================
Files 119 134 +15
Lines 11743 13046 +1303
Branches 2251 2385 +134
=============================================
- Hits 6591 5068 -1523
- Misses 4012 6996 +2984
+ Partials 1140 982 -158 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Which issue does this PR close?
Part of #2019
Rationale for this change
See #2019
What changes are included in this PR?
Refactor GetArrayItem, ElementAt, GetArrayStructFields out of QueryPlanSerde
How are these changes tested?
No new tests are needed since this is a refactor