-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Feat](Nereids) support string functions fold constant by fe #40441
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
Merged
Conversation
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
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 38096 ms |
TPC-DS: Total hot run time: 192427 ms |
ClickBench: Total hot run time: 31.91 s |
Contributor
Author
|
run buildall |
bd9dfc6 to
18f4a35
Compare
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 37836 ms |
TPC-DS: Total hot run time: 192562 ms |
ClickBench: Total hot run time: 32.23 s |
18f4a35 to
297acb4
Compare
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 38399 ms |
TPC-DS: Total hot run time: 192774 ms |
ClickBench: Total hot run time: 31.66 s |
297acb4 to
f560378
Compare
Contributor
Author
|
run buildall |
f560378 to
54275d4
Compare
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 38006 ms |
Contributor
Author
|
run feut |
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 38078 ms |
TPC-DS: Total hot run time: 191376 ms |
ClickBench: Total hot run time: 31.75 s |
Contributor
Author
|
run buildall |
16 tasks
This was referenced Mar 17, 2025
morrySnow
pushed a commit
that referenced
this pull request
Mar 21, 2025
…ter by mistake (#49087) ### What problem does this PR solve? Related PR: #40441 Problem Summary: wrong calculation of emoji character length in some String function when do constant folding in FE. For example: select STRLEFT('😊😉👍', 2); should return 😊😉, but fe return 😊 only when folding constant fixed functions: - left - strleft - right - strright - locate - character_length - split_by_string - overlay - replace_empty
Merged
16 tasks
LiBinfeng-01
pushed a commit
to LiBinfeng-01/doris
that referenced
this pull request
Mar 21, 2025
…ter by mistake (apache#49087) Related PR: apache#40441 Problem Summary: wrong calculation of emoji character length in some String function when do constant folding in FE. For example: select STRLEFT('😊😉👍', 2); should return 😊😉, but fe return 😊 only when folding constant fixed functions: - left - strleft - right - strright - locate - character_length - split_by_string - overlay - replace_empty
16 tasks
LiBinfeng-01
pushed a commit
to LiBinfeng-01/doris
that referenced
this pull request
Mar 21, 2025
…ter by mistake (apache#49087) Related PR: apache#40441 Problem Summary: wrong calculation of emoji character length in some String function when do constant folding in FE. For example: select STRLEFT('😊😉👍', 2); should return 😊😉, but fe return 😊 only when folding constant fixed functions: - left - strleft - right - strright - locate - character_length - split_by_string - overlay - replace_empty
16 tasks
LiBinfeng-01
pushed a commit
to LiBinfeng-01/doris
that referenced
this pull request
Mar 21, 2025
…ter by mistake (apache#49087) Related PR: apache#40441 Problem Summary: wrong calculation of emoji character length in some String function when do constant folding in FE. For example: select STRLEFT('😊😉👍', 2); should return 😊😉, but fe return 😊 only when folding constant fixed functions: - left - strleft - right - strright - locate - character_length - split_by_string - overlay - replace_empty
LiBinfeng-01
pushed a commit
to LiBinfeng-01/doris
that referenced
this pull request
Mar 21, 2025
…ter by mistake (apache#49087) Related PR: apache#40441 Problem Summary: wrong calculation of emoji character length in some String function when do constant folding in FE. For example: select STRLEFT('😊😉👍', 2); should return 😊😉, but fe return 😊 only when folding constant fixed functions: - left - strleft - right - strright - locate - character_length - split_by_string - overlay - replace_empty
yiguolei
pushed a commit
that referenced
this pull request
Mar 21, 2025
…emoji character by mistake #49087 (#49344) pick: #49087 Related PR: #40441 Problem Summary: wrong calculation of emoji character length in some String function when do constant folding in FE. For example: select STRLEFT('😊😉👍', 2); should return 😊😉, but fe return 😊 only when folding constant fixed functions: - left - strleft - right - strright - locate - character_length - split_by_string - overlay - replace_empty
16 tasks
dataroaring
pushed a commit
that referenced
this pull request
Mar 27, 2025
…emoji character by mistake #49087 (#49346) pick: #49087 Related PR: #40441 Problem Summary: wrong calculation of emoji character length in some String function when do constant folding in FE. For example: select STRLEFT('😊😉👍', 2); should return 😊😉, but fe return 😊 only when folding constant fixed functions: - left - strleft - right - strright - locate - character_length - split_by_string - overlay - replace_empty
koarz
pushed a commit
to koarz/doris
that referenced
this pull request
Jun 4, 2025
…apache#48783) ### What problem does this PR solve? Related PR: apache#40441 Problem Summary: The delimiters in split-related string functions that have special meanings in regular expressions should be escaped. .$|()[{^?*+\
koarz
pushed a commit
to koarz/doris
that referenced
this pull request
Jun 4, 2025
…pache#48895) ### What problem does this PR solve? Related PR: apache#40441 Problem Summary: if source string do not contains delim, split_part should return NULL
koarz
pushed a commit
to koarz/doris
that referenced
this pull request
Jun 4, 2025
…ter by mistake (apache#49087) ### What problem does this PR solve? Related PR: apache#40441 Problem Summary: wrong calculation of emoji character length in some String function when do constant folding in FE. For example: select STRLEFT('😊😉👍', 2); should return 😊😉, but fe return 😊 only when folding constant fixed functions: - left - strleft - right - strright - locate - character_length - split_by_string - overlay - replace_empty
koarz
pushed a commit
to koarz/doris
that referenced
this pull request
Jun 4, 2025
GoGoWen
pushed a commit
to GoGoWen/incubator-doris
that referenced
this pull request
Sep 26, 2025
apache#40744)(apache#40745)(40820) (apache#41837) cherry-pick from master
GoGoWen
pushed a commit
to GoGoWen/incubator-doris
that referenced
this pull request
Sep 26, 2025
…e cases apache#45233 (apache#46523) pick: apache#45233 Issue Number: apache#44666 Related PR: apache#40441 Problem Summary: select substring_index('哈哈哈AAA','A', 1); String.split function has second parameter 'limit', which is default zero. When 'limit' is zero, it means it would remove trailing empty strings split of '哈哈哈AAA', which would be '哈哈哈' only. But what we expect is '哈哈哈', '','','' when part function is used by substring index. So we should change splitpart limit to -1 to enable trailing empty character in splitpart list reorganize fold constant of string functions in fe and add more cases
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
approved
Indicates a PR has been approved by one committer.
dev/2.1.7-merged
dev/3.0.3-merged
reviewed
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.
support string functions fold constant by fe:
Concat, Substring, Length, Lower, Upper, Trim, Ltrim, Rtrim, Replace, Left, Right, Locate,
Instr, Ascii, Bin, ConcatWs, CharacterLength, Initcap, Md5, Md5Sum,
Field, FindInSet, Repeat, Reverse, Space, SplitByChar, SplitByString, SplitPart,
SubstringIndex, Strcmp, StrLeft, StrRight, Overlay, ParseUrl, UrlDecode,
AppendTrailingCharIfAbsent, EndsWith, ExtractUrlParameter, Quote, ReplaceEmpty, Password