branch-3.0: [bugfix](nerids) complete the implementation of the concat method. #51141#51223
Merged
dataroaring merged 1 commit intobranch-3.0from May 27, 2025
Merged
Conversation
…51141) Problem Summary: In Doris versions above 2.1.8 and above 3.0.3, , the newly added concat function can't fold when more than two parameters. before: ``` mysql> EXPLAIN SELECT concat('a', 'a', 'b', 'c', 'd', 'efddd'); +---------------------------------------------------+ | Explain String(Nereids Planner) | +---------------------------------------------------+ | PLAN FRAGMENT 0 | | OUTPUT EXPRS: | | concat('a', 'a', 'b', 'c', 'd', 'efddd')[#0] | | PARTITION: UNPARTITIONED | | | | HAS_COLO_PLAN_NODE: false | | | | VRESULT SINK | | MYSQL_PROTOCAL | | | | 0:VUNION(30) | | constant exprs: | | concat('a', 'a', 'b', 'c', 'd', 'efddd') | +---------------------------------------------------+ ``` after: ``` mysql> EXPLAIN SELECT concat('a', 'a', 'b', 'c', 'd', 'efddd'); +----------------------------------+ | Explain String(Nereids Planner) | +----------------------------------+ | PLAN FRAGMENT 0 | | OUTPUT EXPRS: | | 'aabcdefddd'[#0] | | PARTITION: UNPARTITIONED | | | | HAS_COLO_PLAN_NODE: false | | | | VRESULT SINK | | MYSQL_PROTOCAL | | | | 0:VUNION(30) | | constant exprs: | | 'aabcdefddd' | +----------------------------------+ ``` Co-authored-by: weiwh1 <weiwh1@chinatelecom.cn>
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
|
run buildall |
TPC-H: Total hot run time: 39631 ms |
TPC-DS: Total hot run time: 195610 ms |
ClickBench: Total hot run time: 30.95 s |
Contributor
|
run p0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-picked from #51141