-
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](unary function) Fix wrong result of asin, acos and sqrt when processing invalid input #40267
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 38046 ms
|
TPC-DS: Total hot run time: 192688 ms
|
ClickBench: Total hot run time: 32.4 s
|
sql """ | ||
set debug_skip_fold_constant=true; | ||
""" | ||
|
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.
我们所有的函数测试,都得测试 两种:
- 常量
- 把数据插入到一个表中,然后select的时候运行函数
- 二元函数检查,参数是否都可以为常量或者变量
run buildall |
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
clang-tidy review says "All clean, LGTM! 👍" |
// specific language governing permissions and limitations | ||
// under the License. | ||
// This file is copied from | ||
// https://github.com/ClickHouse/ClickHouse/blob/master/src/Functions/FunctionMathUnary.h |
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 add this? do you refer these code?
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.
copied from be/src/vec/functions/function_math_unary.h
TPC-H: Total hot run time: 38205 ms
|
TPC-DS: Total hot run time: 187348 ms
|
ClickBench: Total hot run time: 31.88 s
|
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
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
PR approved by anyone and no changes requested. |
TPC-H: Total hot run time: 38171 ms
|
TPC-DS: Total hot run time: 188674 ms
|
ClickBench: Total hot run time: 31.34 s
|
PR approved by at least one committer and no changes requested. |
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
PR approved by at least one committer and no changes requested. |
TPC-H: Total hot run time: 38307 ms
|
TPC-DS: Total hot run time: 193103 ms
|
ClickBench: Total hot run time: 31.55 s
|
…ocessing invalid input (apache#40267) When input of asin, acos and sqrt is invalid, result of them should be null (same with mysql).
apache/doris#40267 # Versions - [x] dev - [x] 3.0 - [x] 2.1 - [x] 2.0 # Languages - [x] Chinese - [x] English
…ocessing invalid input (#40267) When input of asin, acos and sqrt is invalid, result of them should be null (same with mysql).
apache/doris#40267 # Versions - [x] dev - [x] 3.0 - [x] 2.1 - [x] 2.0 # Languages - [x] Chinese - [x] English
When input of asin, acos and sqrt is invalid, result of them should be null (same with mysql).