Skip to content

Conversation

@morrySnow
Copy link
Contributor

No description provided.

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@morrySnow
Copy link
Contributor Author

run buildall

@morrySnow morrySnow added the not-merge/2.0 do not merge into 2.0 branch label May 7, 2024
@morrySnow
Copy link
Contributor Author

run p0

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label May 7, 2024
@github-actions
Copy link
Contributor

github-actions bot commented May 7, 2024

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

github-actions bot commented May 7, 2024

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)
Copy link
Contributor

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?

Copy link
Contributor Author

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++) {
Copy link
Contributor

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?

Copy link
Contributor Author

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

@morrySnow
Copy link
Contributor Author

already fixed by #34471

@morrySnow morrySnow closed this May 10, 2024
@morrySnow morrySnow deleted the fix_compute_round_precision branch May 27, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. not-merge/2.0 do not merge into 2.0 branch reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants