-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[SPARK-34749][SQL] Simplify ResolveCreateNamedStruct #31843
Conversation
Test build #136078 has finished for PR 31843 at commit
|
Could you fix the relevant UT failure?
|
The scala 2.13 failure is unrelated. Can you take another look? @dongjoon-hyun @maropu , thanks! |
#31862 seems can fix this. |
// 4. GetMapValue if `a.b` refers to a map-type column. | ||
// We should always use the last part of the column name (`c` in the above example) as the | ||
// alias name inside CreateNamedStruct. | ||
case (u: UnresolvedAttribute, _) => Seq(Literal(u.nameParts.last), u) |
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.
Ah, I see. This change makes ResolveCreateNamedStruct
simpler. The fix seems smart.
Thanks! Merged to master. |
The commit has a conflict with branch-3.1. Is it better to merge this in branch-3.1, too, because this is a follow-up of #31808? If so, could you open a backport PR for the fix? |
This is a follow-up of apache#31808 and simplifies its fix to one line (excluding comments). code simplification no N/A Closes apache#31843 from cloud-fan/simplify. Authored-by: Wenchen Fan <[email protected]> Signed-off-by: Takeshi Yamamuro <[email protected]>
backports #31843 ### What changes were proposed in this pull request? This is a follow-up of #31808 and simplifies its fix to one line (excluding comments). ### Why are the changes needed? code simplification ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? N/A Closes #31867 from cloud-fan/backport. Authored-by: Wenchen Fan <[email protected]> Signed-off-by: Takeshi Yamamuro <[email protected]>
backports apache#31843 ### What changes were proposed in this pull request? This is a follow-up of apache#31808 and simplifies its fix to one line (excluding comments). ### Why are the changes needed? code simplification ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? N/A Closes apache#31867 from cloud-fan/backport. Authored-by: Wenchen Fan <[email protected]> Signed-off-by: Takeshi Yamamuro <[email protected]>
backports apache#31843 ### What changes were proposed in this pull request? This is a follow-up of apache#31808 and simplifies its fix to one line (excluding comments). ### Why are the changes needed? code simplification ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? N/A Closes apache#31867 from cloud-fan/backport. Authored-by: Wenchen Fan <[email protected]> Signed-off-by: Takeshi Yamamuro <[email protected]>
What changes were proposed in this pull request?
This is a follow-up of #31808 and simplifies its fix to one line (excluding comments).
Why are the changes needed?
code simplification
Does this PR introduce any user-facing change?
no
How was this patch tested?
N/A