apache / seatunnel

SeaTunnel is a next-generation super high-performance, distributed, massive data integration tool.
https://seatunnel.apache.org/
Apache License 2.0
7.98k stars 1.8k forks source link

[Hotfix][Connector-V2] Fixed precision problem of decimal data types for paimon sink #7527

Closed dailai closed 2 months ago

dailai commented 2 months ago

Purpose of this pull request

Fix the problem that the data type precision of decimal at the sink side is greater than the precision at the source side, the data is written incorrectly. Like this: The filed in source is decimal(4,1), the value of temp in source is 36.3 截屏2024-08-30 09 52 14 The filed in sinnk is decimal(16,6) which the table is created manually 截屏2024-08-30 09 52 38 And then the result is not correct, the value of temp in sink is 0.000363

截屏2024-08-30 09 50 39

Does this PR introduce any user-facing change?

How was this patch tested?

Check list