Ivan-gfan commented on PR #9947:
URL: https://github.com/apache/seatunnel/pull/9947#issuecomment-3402178545

   I encountered this issue while synchronizing data from **Doris** to 
**Doris**.
   The original table had a column of type `DecimalV3(8, 0)` with a value of 
`123`.
   However, when the target table was created automatically by SeaTunnel, the 
corresponding column type became `DecimalV3(8, 8)`, and the field value turned 
into `0.99999999`.
   
   After tracing the entire data flow, I identified the root cause:
   during source-side reading, the type was incorrectly converted to 
`DecimalV3(8, 10)`.
   Later, in the Doris table creation process, there is logic that checks 
whether the `scale` exceeds the `precision`;
   if so, it resets the `scale` to the same value as `precision`.
   As a result, the final created field type became `DecimalV3(8, 8)`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to