GitHub user maropu opened a pull request:
https://github.com/apache/spark/pull/17970
[SPARK-20730][SQL] Add an optimizer rule to combine nested Concat
## 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 `CombineConcatSuite` and `SQLQueryTestSuite`.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/maropu/spark SPARK-20730
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/17970.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #17970
----
commit 7b5bff517b8933a466a9e200b13c7b246d09dbab
Author: Takeshi Yamamuro <[email protected]>
Date: 2017-05-13T01:55:43Z
Add a optimizer rule to combine nested Concat
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]