-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](Nereids) fold constant for string function process emoji character by mistake #49087
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
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
|
run buildall |
...n/java/org/apache/doris/nereids/trees/expressions/functions/executable/StringArithmetic.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/doris/nereids/trees/expressions/functions/executable/StringArithmetic.java
Show resolved
Hide resolved
TPC-H: Total hot run time: 32628 ms |
TPC-DS: Total hot run time: 192255 ms |
ClickBench: Total hot run time: 30.54 s |
|
run buildall |
fe/fe-core/src/main/java/org/apache/doris/catalog/BuiltinScalarFunctions.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/doris/nereids/trees/expressions/functions/executable/StringArithmetic.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/doris/nereids/trees/expressions/functions/executable/StringArithmetic.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/doris/nereids/trees/expressions/functions/executable/StringArithmetic.java
Outdated
Show resolved
Hide resolved
|
run buildall |
|
run buildall |
TPC-H: Total hot run time: 32319 ms |
TPC-DS: Total hot run time: 191392 ms |
ClickBench: Total hot run time: 30.77 s |
...n/java/org/apache/doris/nereids/trees/expressions/functions/executable/StringArithmetic.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/doris/nereids/trees/expressions/functions/executable/StringArithmetic.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/doris/nereids/trees/expressions/functions/executable/StringArithmetic.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/doris/nereids/trees/expressions/functions/executable/StringArithmetic.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/doris/nereids/trees/expressions/functions/executable/StringArithmetic.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/doris/nereids/trees/expressions/functions/executable/StringArithmetic.java
Show resolved
Hide resolved
...n/java/org/apache/doris/nereids/trees/expressions/functions/executable/StringArithmetic.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/doris/nereids/trees/expressions/functions/executable/StringArithmetic.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/doris/nereids/trees/expressions/functions/executable/StringArithmetic.java
Outdated
Show resolved
Hide resolved
...n/java/org/apache/doris/nereids/trees/expressions/functions/executable/StringArithmetic.java
Show resolved
Hide resolved
|
run buildall |
1 similar comment
|
run buildall |
|
run buildall |
TPC-H: Total hot run time: 32783 ms |
TPC-DS: Total hot run time: 186488 ms |
ClickBench: Total hot run time: 31.58 s |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
aytrack
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
…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
…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
…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
…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
…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
…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
…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
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #40441
Problem Summary:
Release note
wrong calculation of emoji character length in some String function when do constant folding in FE. For example:
should return
😊😉, but fe return😊only when folding constantfixed functions:
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)