[SPARK-36452][SQL]: Add the support in Spark for having group by map datatype column for the scenario that works in Hive#33679
Closed
SaurabhChawla100 wants to merge 3 commits intoapache:masterfrom
Closed
Conversation
|
Can one of the admins verify this patch? |
2b4bf6f to
fc95f3f
Compare
fc95f3f to
8db4d3a
Compare
8db4d3a to
e6505d1
Compare
HyukjinKwon
reviewed
Aug 9, 2021
|
|
||
| /** | ||
| * Returns true iff the data type can be ordered (i.e. can be sorted). | ||
| * Returns true if the data type can be ordered (i.e. can be sorted). |
Member
There was a problem hiding this comment.
iff is an abbreviation of if and only if
HyukjinKwon
reviewed
Aug 9, 2021
| * Returns true if the data type can be ordered (i.e. can be sorted). | ||
| */ | ||
| def isOrderable(dataType: DataType): Boolean = dataType match { | ||
| def isOrderable(dataType: DataType, |
Contributor
Author
There was a problem hiding this comment.
@HyukjinKwon - Thanks for checking this PR. Yes we can wait for this PR #32552. The fix in this will work with group by, order by , partition by in window.
Contributor
Contributor
Author
|
We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. |
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.
What changes were proposed in this pull request?
Add the support in Spark for having group by map datatype column for the scenario that works in Hive.
In hive this scenario works fine
But in spark where the group by map column failed for this scenario where the map column is used in the select without any aggregation, The one that works in hive.
Why are the changes needed?
There is need to add the this scenario where grouping expression can have map type if aggregated expression does not have the that map type reference. This helps in migrating the user from hive to Spark.
After the code change
Does this PR introduce any user-facing change?
No
How was this patch tested?
Added the unit test and also tested using spark-shell the scenario