ITRS1991 opened a new issue, #24934:
URL: https://github.com/apache/doris/issues/24934

   ### 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
   
   1.2.5
   
   ### What's Wrong?
   
   
   select _col0,_col1,_col0/_col1,cast(_col0 as decimalv3(38, 10))/cast(_col1 
as decimalv3(38, 10)) from test_20230926 LIMIT 1;
   
   result:
   8888.88800000000000000000 | 0.88800000000000 | 1.916004318248527384365848 | 
10010.00900900900900
   
   
   
   ### What You Expected?
   
   8888.88800000000000000000 / 0.88800000000000 = 10010.00900900900900
   
   ### How to Reproduce?
   
   ddl:
   CREATE TABLE `test_20230926` (
     `name` varchar(65533) NULL,
     `_col0` decimalv3(38, 20) NULL,
     `_col1` decimalv3(38, 14) NULL,
     `_col2` decimalv3(38, 24) NULL
   ) ENGINE=OLAP
   DUPLICATE KEY(`name`)
   COMMENT 'OLAP'
   DISTRIBUTED BY HASH(`name`) BUCKETS 10
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 3",
   "in_memory" = "false",
   "storage_format" = "V2",
   "disable_auto_compaction" = "false"
   );
   
   
   insert into test_20230926 values('f',8888.888,0.888,8.8);
   select _col0,_col1,_col0/_col1,cast(_col0 as decimalv3(38, 10))/cast(_col1 
as decimalv3(38, 10)) from test_20230926 where name='f';
   
   ### Anything Else?
   
   no
   
   ### Are you willing to submit PR?
   
   - [X] 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]

Reply via email to