-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](Nereids) ComputePrecisionForRound should only process integral literal #34473
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 |
|
run p0 |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
| int scale; | ||
|
|
||
| if (floatLength.isLiteral() || (floatLength instanceof Cast && floatLength.child(0).isLiteral() | ||
| if ((floatLength.isLiteral() && floatLength.getDataType() instanceof Int32OrLessType) |
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.
in what situation would scale does not have integer type?
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.
when we do computePrecision, we do not finish compute signature. so type coercion do not apply. so its child could be any type literal
| List<Column> columns = Lists.newArrayList(); | ||
| PhysicalEmptyRelation physicalEmptyRelation = (PhysicalEmptyRelation) physicalPlan.child(0); | ||
| for (int i = 0; i < physicalEmptyRelation.getProjects().size(); i++) { | ||
| for (int i = 0; i < physicalPlan.getOutput().size(); i++) { |
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.
what is the relation between this for loop with round function?
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.
this is another bug, and have no relation with round function
|
already fixed by #34471 |
No description provided.