-
-
Notifications
You must be signed in to change notification settings - Fork 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
fix: Fix incorrect lazy schema for explode on array columns #19776
Conversation
@@ -132,7 +132,7 @@ impl From<ArrayFunction> for SpecialEq<Arc<dyn ColumnsUdf>> { | |||
#[cfg(feature = "array_count")] | |||
CountMatches => map_as_slice!(count_matches), | |||
Shift => map_as_slice!(shift), | |||
Explode => unreachable!(), | |||
Explode => map_as_slice!(explode), |
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've also removed some code further down that re-wrote ArrayFunction::Explode
to AExpr::Explode
- it was being done in the optimizer stage which isn't guaranteed to be hit.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #19776 +/- ##
=======================================
Coverage 79.55% 79.55%
=======================================
Files 1544 1544
Lines 213240 213241 +1
Branches 2441 2441
=======================================
+ Hits 169645 169654 +9
+ Misses 43046 43038 -8
Partials 549 549 ☔ View full report in Codecov by Sentry. |
Fixes #19763
Our lazy schema for an exploded array column was not correct. I think this was only starting causing issues with joins after #19625 because we never used this schema information before then