"Hologres中这个问题怎么解决?
status { code: SERVER_INTERNAL_ERROR message: ""[FunctionsCast.cc:356 DecimalOverflowCheck] HGERR_code 22003 HGERR_msge numeric field overflow HGERR_detl A field with precision 10, scale 2 must round to an absolute value less than 10^8. HGERR_end[query_id:30094035099550258][query_id:30094035099550258]"" err_data { filename: ""FunctionsCast.cc"" lineno: 356 funcname: ""DecimalOverflowCheck"" sqlerrcode: 50331778 message: ""numeric field overflow"" detail: ""A field with precision 10, scale 2 must round to an absolute value less than 10^8."" context: ""[query_id:30094035099550258]"" } }
Where: [query_id:30094035099550258]
错误原因:ERROR: status { code: SERVER_INTERNAL_ERROR message: ""[FunctionsCast.cc:356 DecimalOverflowCheck] HGERR_code 22003 HGERR_msge numeric field overflow HGERR_detl A field with precision 10, scale 4 must round to an absolute value less than 10^6. HGERR_erno 2 HGERR_end[query_id:20860403937401380][query_id:20860403937401380]"" err_data { filename: ""FunctionsCast.cc"" lineno: 356 funcname: ""DecimalOverflowCheck"" sqlerrcode: 50331778 message: ""numeric field overflow"" detail: ""A field with precision 10, scale 4 must round to an absolute value less than 10^6."" context: ""[query_id:20860403937401380]"" saved_errno: 2 } }
Where: [query_id:20860403937401380]"
这个是数据越界了。数据类型是Decimal(10,4),也就是说总位数是10位,小数部分是4位,那么整数部分是6位。因此最大也不能超过10的6次方。此答案整理至钉群“实时数仓Hologres交流群“。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
本技术圈将为大家分析有关阿里云产品Hologres的最新产品动态、技术解读等,也欢迎大家加入钉钉群--实时数仓Hologres交流群32314975