doris: [Bug] Use correct decimal scale for function `round`

Search before asking

  • I had searched in the issues and found no similar issues.

Version

master

What’s Wrong?

As discussed in #14946, round(16.025000, 2) should be 16.03 instead of 16.030000 if 16.025000 is a DECIMALV3 type.

Related functions: round floor ceil truncate round_bankers

What You Expected?

1

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

@Yukang-Lian Thanks for your kindly help! I think these steps are specific enough. @Prakhar047 Follow these steps and feel free to discuss with me if you need help.

You are welcome.