Apache Doris 中文技术论坛
Questions Tags Users Badges

【已解决】decimal(18,0) 类型字段,转字符串的时候会加上 .00000的文本

Asked Apr 16, 2024 Modified Apr 17, 2024
Viewed 69
2.0

Doris 1.2.7 升级到 Doris 2.0.8
发现与以前行为不一致的地方:
decimal(18,0) 类型字段,转字符串的时候会加上 .00000的文本
使用concat函数也会加上.00000的文本

edited Apr 17, 2024
Kevin.Shin19
asked Apr 16, 2024
2 Answers

如果遇到类似问题,一个可用的解决方案是:
在类型是decimal(18,0)的字段上,执行更改类型的 alter 命令,将类型改成decimal不带任何参数,可以解决问题。

edited Apr 17, 2024
Kevin.Shin19
answered Apr 17, 2024

未复现,方便提供一下复现步骤吗
image.png

edited Apr 17, 2024
黄海军@SelectDB5218
answered Apr 16, 2024
Related Questions
Doris 2.0.15,3FE、6BE(3BE mix角色 3BE computation角色)3个mix角色的BE节点CPU使用率100%
1 answers
Doris Routine Load自动恢复机制
1 answers
我的doris版本为2.0.6 在备份操作时,会导致所以fe节点宕机,这种情况该怎么排查,为什么备份会导致这个问题?
1 answers
doris fe节点变更成高可用配置
1 answers
各位大哥在通过k8s安装doris3.0的时候,有没有遇到cg启动不起来,提示Set max number of open file descriptors to a value greater than 60000.
1 answers
doris主键表可以bucket配置太小,怎么修改?
1 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2026 Apache Doris 中文技术论坛.