-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[Fix](Nereids) fix append_trailing_char_if_absent function return null #40820
[Fix](Nereids) fix append_trailing_char_if_absent function return null #40820
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
@@ -91,7 +92,7 @@ private static LocalDateTime getDateCeilOrFloor(DATE tag, LocalDateTime date, in | |||
break; | |||
} | |||
default: { | |||
return null; | |||
throw new AnalysisException("Unexpected tag: " + tag); |
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.
why change this? return null is correct because we do not want to throw exception
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.
here return null is reasonable, I check caller, they have deal with null. Let me restore this behavior
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.
done
1ff781d
to
7e60ce3
Compare
run buildall |
TPC-H: Total hot run time: 42772 ms
|
TPC-DS: Total hot run time: 195890 ms
|
ClickBench: Total hot run time: 31.06 s
|
run cloud_p0 |
run buildall |
TPC-H: Total hot run time: 41505 ms
|
TPC-DS: Total hot run time: 198636 ms
|
ClickBench: Total hot run time: 32.39 s
|
run cloud_p0 |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
example: select append_trailing_char_if_absent('it','a') would return null in original design, it can not return null when folding constant on fe any time