AcKing-Sam commented on issue #31518: URL: https://github.com/apache/doris/issues/31518#issuecomment-1974409432
Hi @zxealous, maybe use decimal instead of float is helpful. The manual mentions [the optimization for decimal in Doris](https://doris.apache.org/docs/dev/sql-manual/sql-reference/Data-Types/DECIMAL/#why-decimal-is-required). Therefore, within the precision of 9 digits, decimal consumes 4 bytes which is the same as float. The below example is from v2.0.5: ```mysql mysql> select cast("123.123" as decimal(9,3)); +------------------------------------+ | cast('123.123' as DECIMALV3(9, 3)) | +------------------------------------+ | 123.123 | +------------------------------------+ 1 row in set (0.01 sec) ``` -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org