We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version:
Describe the bug
MySQL表中有Decimal(18, 2)类型字段,同步到CK时选择自动创建表(手动创建相同属性也一样),CK表中字段也是Decimal(18, 2)类型。 同步3000多条数据,其中有3 至 5条数据,小数位错误。 比如MySQL中原数据为 149.14,CK中对应的数据为 149.13 。
将相同的表同步到另一个MySQL数据库中,没有此问题。
Screenshots
Additional context
查看处理Decimal类型的源码
Bifrost/plugin/clickhouse/src/transfer.go
Lines 432 to 453 in 522456a
是做了Float64的转换,是否可以修改为String的转换,CK支持String数据添加到Decimal类型字段中。
The text was updated successfully, but these errors were encountered:
因为驱动包原因,需要对驱动包升级,后续版本修复
Sorry, something went wrong.
修复plugin clickhouse decimal 精度丢失的bug
a91fc43
#204
Merge branch 'v2.2.3' into v2.3.4
00d2bb8
* v2.2.3: 修复MySQL源,指定同步表配置后,但可能没生效的BUG BUG复现过程: 1. 配置了一个T1表同步 2. 重启进程,并且T1表数据不再做任何更新 3. 配置T2表同步 4. 更新T1表的数据 修复mysql 带有触发器的时候binlog解析失败的bug #263 修复plugin clickhouse decimal 精度丢失的bug #204 v2.2.2 # Conflicts: # README.EN.MD # README.MD # changelog.txt # config/version.go
No branches or pull requests
Version:
Describe the bug
MySQL表中有Decimal(18, 2)类型字段,同步到CK时选择自动创建表(手动创建相同属性也一样),CK表中字段也是Decimal(18, 2)类型。
同步3000多条数据,其中有3 至 5条数据,小数位错误。
比如MySQL中原数据为 149.14,CK中对应的数据为 149.13 。
将相同的表同步到另一个MySQL数据库中,没有此问题。
Screenshots
Additional context
查看处理Decimal类型的源码
Bifrost/plugin/clickhouse/src/transfer.go
Lines 432 to 453 in 522456a
是做了Float64的转换,是否可以修改为String的转换,CK支持String数据添加到Decimal类型字段中。
The text was updated successfully, but these errors were encountered: