Skip to content
New issue

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

datax处理double类型数据的精度丢失问题 #2211

Open
DISC0V3RY opened this issue Sep 15, 2024 · 0 comments
Open

datax处理double类型数据的精度丢失问题 #2211

DISC0V3RY opened this issue Sep 15, 2024 · 0 comments

Comments

@DISC0V3RY
Copy link

reader:oceanbase10reader
字段类型:NUMBER(17,2)
数据:99999999999999.99

writer:hdfswriter
字段类型:DECIMAL(17,2)
数据:9.999999999999998B

hive表查询出来数据就是:99999999999999.98

这种应该是数据超出了double类型的长度导致的,有没有可能通过datax的参数配置或类型转换来解决这个问题?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant