longzmkm opened a new issue, #32942: URL: https://github.com/apache/doris/issues/32942
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues. ### Version doris-2.1.0-rc11-91efb6a43d ### What's Wrong? CREATE TABLE `test_double` ( report_date date, v double NULL ) engine=OLAP DUPLICATE KEY(`report_date`) DISTRIBUTED BY HASH(`report_date`) BUCKETS 1 PROPERTIES ( "replication_allocation" = "tag.location.default: 1", "in_memory" = "false", "storage_format" = "V2", "disable_auto_compaction" = "false" ); INSERT INTO `test_double` (`report_date`, `v`) VALUES ('2024-03-19', NULL), ('2024-03-19', '2'), ('2024-03-19', '0'), ('2024-03-19', '0'), ('2024-03-19', '0'), ('2024-03-19', '0'), ('2024-03-19', '1'), ('2024-03-19', NULL), ('2024-03-19', '0.5'), ('2024-03-19', NULL), ('2024-03-19', NULL), ('2024-03-19', NULL), ('2024-03-19', NULL), ('2024-03-19', '0'), ('2024-03-19', '1'), ('2024-03-19', '0'), ('2024-03-19', NULL); SELECT report_date, ROUND(4.5,0), round(v_total,0), v_total from ( SELECT test_double.report_date, sum(COALESCE(v,0)) as "v_total" from test_double GROUP by test_double.report_date )a; <img width="708" alt="image" src="https://github.com/apache/doris/assets/19727358/55413ef4-1f64-4992-b820-6234d1c520b0"> why round(v_total,0) = 4 but 5 is true ### What You Expected? why round(v_total,0) = 4 but 5 is true ### 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 - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
