-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-20730][SQL] Add an optimizer rule to combine nested Concat #17970
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 #76889 has finished for PR 17970 at commit
|
| SimplifyCreateArrayOps, | ||
| SimplifyCreateMapOps) ++ | ||
| SimplifyCreateMapOps, | ||
| CombineConcat) ++ |
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.
Hi, @maropu .
CombineConcats like the other Combine~ optimizer?
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.
Thanks, comments! Fixed.
|
+1, LGTM except one minor naming comment. |
|
Test build #76902 has finished for PR 17970 at commit
|
gatorsmile
left a comment
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.
LGTM
|
cc @cloud-fan |
| import org.apache.spark.sql.types.StringType | ||
|
|
||
|
|
||
| class CombineConcatsSuite extends PlanTest with PredicateHelper { |
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.
Have we used PredicateHelper here?
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.
Thanks! Removed.
|
LGTM except one minor comment. |
|
Test build #76908 has finished for PR 17970 at commit
|
|
LGTM, merging to master! |
## What changes were proposed in this pull request? This pr added a new Optimizer rule to combine nested Concat. The master supports a pipeline operator '||' to concatenate strings in apache#17711 (This pr is follow-up). Since the parser currently generates nested Concat expressions, the optimizer needs to combine the nested expressions. ## How was this patch tested? Added tests in `CombineConcatSuite` and `SQLQueryTestSuite`. Author: Takeshi Yamamuro <[email protected]> Closes apache#17970 from maropu/SPARK-20730.
## What changes were proposed in this pull request? This pr added a new Optimizer rule to combine nested Concat. The master supports a pipeline operator '||' to concatenate strings in apache#17711 (This pr is follow-up). Since the parser currently generates nested Concat expressions, the optimizer needs to combine the nested expressions. ## How was this patch tested? Added tests in `CombineConcatSuite` and `SQLQueryTestSuite`. Author: Takeshi Yamamuro <[email protected]> Closes apache#17970 from maropu/SPARK-20730.
What changes were proposed in this pull request?
This pr added a new Optimizer rule to combine nested Concat. The master supports a pipeline operator '||' to concatenate strings in #17711 (This pr is follow-up). Since the parser currently generates nested Concat expressions, the optimizer needs to combine the nested expressions.
How was this patch tested?
Added tests in
CombineConcatSuiteandSQLQueryTestSuite.