-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-8104][SQL] auto alias expressions in analyzer #6647
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
Conversation
|
The tests will fail as we need to fix the complex field order by issue first. See #5659 |
|
Test build #34193 has finished for PR 6647 at commit
|
|
Test build #34241 has finished for PR 6647 at commit
|
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.
exprs.map should be enough? We should just resolve the Alias for the root of a given expression tree, right?
|
For DataFrame API, probably we'd better still keep the existed naming pattern, as we don't want to confusing the users when upgrade the spark. |
|
Test build #34268 has finished for PR 6647 at commit
|
|
Test build #34353 has finished for PR 6647 at commit
|
|
Test build #35138 has finished for PR 6647 at commit
|
|
Test build #35226 has finished for PR 6647 at commit
|
|
retest this please. |
|
Test build #35386 has finished for PR 6647 at commit
|
|
Test build #35394 has finished for PR 6647 at commit
|
|
Test build #35399 has finished for PR 6647 at commit
|
|
Test build #35407 has finished for PR 6647 at commit
|
|
Test build #35413 has finished for PR 6647 at commit
|
|
Test build #35424 has finished for PR 6647 at commit
|
|
Test build #35432 has finished for PR 6647 at commit
|
|
Test build #35436 has finished for PR 6647 at commit
|
|
Test build #35438 has finished for PR 6647 at commit
|
|
Test build #35443 has finished for PR 6647 at commit
|
|
Test build #35449 has finished for PR 6647 at commit
|
|
Thanks for cleaning this up. Merging to master! |
Currently we auto alias expression in parser. However, during parser phase we don't have enough information to do the right alias. For example, Generator that has more than 1 kind of element need MultiAlias, ExtractValue don't need Alias if it's in middle of a ExtractValue chain. Author: Wenchen Fan <[email protected]> Closes apache#6647 from cloud-fan/alias and squashes the following commits: 552eba4 [Wenchen Fan] fix python 5b5786d [Wenchen Fan] fix agg 73a90cb [Wenchen Fan] fix case-preserve of ExtractValue 4cfd23c [Wenchen Fan] fix order by d18f401 [Wenchen Fan] refine 9f07359 [Wenchen Fan] address comments 39c1aef [Wenchen Fan] small fix 33640ec [Wenchen Fan] auto alias expressions in analyzer
Currently we auto alias expression in parser. However, during parser phase we don't have enough information to do the right alias. For example, Generator that has more than 1 kind of element need MultiAlias, ExtractValue don't need Alias if it's in middle of a ExtractValue chain.