-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-40717][CONNECT] Support Column Alias in the Connect DSL #38174
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
|
R: @cloud-fan |
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.
why wouldn't this be a common attribute of Expression instead?
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.
Only a few places require Expression to be wrapped by an alias. I'd like to match catalyst and have an individual Alias expression.
|
Can one of the admins verify this patch? |
|
thanks, merging to master! |
| transform(connectTestRelation.select("id".protoAttr.as("id2"))) | ||
| } | ||
| val sparkPlan = sparkTestRelation.select($"id".as("id2")) | ||
| } |
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.
Actually this doesn't test :-). Let me make a quick followup.
What changes were proposed in this pull request?
Support Column Alias in the Connect DSL (thus in Connect proto).
Why are the changes needed?
Column alias is a part of dataframe API , meanwhile we need column alias to support
withColumnetc. API.Does this PR introduce any user-facing change?
No
How was this patch tested?
UT