fix: [branch-0.16] prevent native sort crash for Struct(Map(...)) keys#4265
Draft
andygrove wants to merge 1 commit intoapache:branch-0.16from
Draft
fix: [branch-0.16] prevent native sort crash for Struct(Map(...)) keys#4265andygrove wants to merge 1 commit intoapache:branch-0.16from
andygrove wants to merge 1 commit intoapache:branch-0.16from
Conversation
(cherry picked from commit 7cf04c8)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Backport of #4157 (closes #4123) to
branch-0.16.Rationale for this change
Spark 4.1.1 SQL coverage exposed a case where Comet allows native aggregation for grouping keys that contain nested
MapType(for exampleStructType(MapType(...))). Although planning succeeds, downstream native sort/row-format handling does not support this shape, so the query fails at execution time instead of falling back to Spark during planning.This brings the fix to the
0.16release line so the upcoming patch release does not crash on these grouping keys.What changes are included in this PR?
Clean cherry-pick of commit `7cf04c8e39d557ec895a6489b5eefd6076d648ac` from `main`:
How are these changes tested?
Inherited from the original PR: