-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Fix](Nereids) ntile function should check argument #32994
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. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
TPC-H: Total hot run time: 37354 ms |
|
run buildall |
|
run buildall |
TPC-H: Total hot run time: 37852 ms |
TPC-DS: Total hot run time: 182310 ms |
|
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G' |
|
run buildall |
TPC-H: Total hot run time: 38079 ms |
TPC-DS: Total hot run time: 182268 ms |
ClickBench: Total hot run time: 30.15 s |
|
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G' |
|
run buildall |
TPC-H: Total hot run time: 38326 ms |
TPC-DS: Total hot run time: 181949 ms |
ClickBench: Total hot run time: 30.91 s |
|
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G' |
| @Override | ||
| public void checkLegalityBeforeTypeCoercion() { | ||
| DataType type = getBuckets().getDataType(); | ||
| if (!type.isNumericType()) { |
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.
isIntegralType ?
|
run buildall |
TPC-H: Total hot run time: 38944 ms |
TPC-DS: Total hot run time: 181701 ms |
ClickBench: Total hot run time: 29.7 s |
|
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G' |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
Problem: when ntile using 0 as parameter, be would core because no checking of parameter Solved: check parameter in fe analyze
Problem: when ntile using 0 as parameter, be would core because no checking of parameter Solved: check parameter in fe analyze
Problem: when ntile using 0 as parameter, be would core because no checking of parameter Solved: check parameter in fe analyze
Problem: when ntile using 0 as parameter, be would core because no checking of parameter Solved: check parameter in fe analyze
…pache#34661) pick from master apache#32994 Problem: when ntile using 0 as parameter, be would core because no checking of parameter Solved: check parameter in fe analyze
Proposed changes
Problem:
when ntile using 0 as parameter, be would core because no checking of parameter
Solved:
check parameter in fe analyze
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...