-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-40879][CONNECT] Support Join UsingColumns in proto #38345
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -109,6 +109,12 @@ message Join { | |
| Relation right = 2; | ||
| Expression join_condition = 3; | ||
| JoinType join_type = 4; | ||
| // Optional. using_columns provides a list of columns that should present on both sides of | ||
| // the join inputs that this Join will join on. For example A JOIN B USING col_name is | ||
| // equivalent to A JOIN B on A.col_name = B.col_name. | ||
| // | ||
| // This field does not co-exist with join_condition. | ||
| repeated string using_columns = 5; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can join_condition and using_columns co-exist?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Based on the current Catalyst implementation. My read is yes. My understanding is current Catalyst implementation does not support
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looking at the API layer (DF and SQL), I don't think they can co-exist. E.g. the parser rule is
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see. To match with our API (but not implementation), I added a check to make sure only one of these two will be set.
amaliujia marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| enum JoinType { | ||
| JOIN_TYPE_UNSPECIFIED = 0; | ||
|
|
||
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.
let's also mention that this can't co-exist with
join_conditionThere 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.
done.