-
Notifications
You must be signed in to change notification settings - Fork 29.1k
[SPARK-4576][SQL] Add concatenation operator #3433
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
|
Test build #23794 has finished for PR 3433 at commit
|
|
Test build #23795 has finished for PR 3433 at commit
|
|
Test build #23797 has finished for PR 3433 at commit
|
|
Test build #23960 has finished for PR 3433 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.
Is this the right place to add this given the precedence of the operator?
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, I found the precedence of the operator is different depends on the implementation of RDBMS. The precedence of this operator in this PR is similar to PostgreSQL's implementation.
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.
NIT: add a space after {.
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.
@liancheng Thanks for your comment. I've done.
|
Test build #24278 has finished for PR 3433 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.
This is automatically defined by BinaryExpression.
|
One minor style comment. Also, does Hive support this? If so we should add it to |
|
Thanks @marmbrus . |
|
Test build #24565 has finished for PR 3433 at commit
|
|
Test build #24749 has finished for PR 3433 at commit
|
|
Test build #24836 has finished for PR 3433 at commit
|
|
Test build #24896 has finished for PR 3433 at commit
|
|
Hmm, okay. It might be a little confusing to users if in one version it does concatenation and in the other it is an |
|
Ah, exactly it can confusing users. So how about adding |
|
Yeah, agreed. Lets block this on SPARK-4867, but once that is fixed I'd love to have a native |
|
For now though I propose we close this issue. |
|
O.K, closing this PR. |
The standard SQL defines
||as a concatenation operator.The operator makes concatenated string from 2 operands.