大家好:
有一张Mysql表,flink cdc接了表的binlog,对表中按id分组后对某个字段(DECIMAL(38,2))求和,之后输出到Kafka(id STRING, sum DECIMAL(38,2));
现在的问题是,Kafka中收到的sum值会以不同形式展示,如下2条数据中的charge_number字段
{"stats_key”:"123","charge_number":18353.83,"charge_duration":38825,"charge_income":5013.8,"charge_count":432}
{"stats_key”:”456","charge_number":6E+2,"charge_duration":675,"charge_income":45,"charge_count":3}
存在了这样的科学计数法 6E+2,这个该怎么转换成具体数值呢?不然后续不好处理
| |
superainbower
|
|
[hidden email]
|
签名由网易邮箱大师定制