[ 
https://issues.apache.org/jira/browse/FLINK-40360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yanquan Lv resolved FLINK-40360.
--------------------------------
    Fix Version/s: cdc-3.7.0
         Assignee: Mao Jiayi
       Resolution: Fixed

Merged in master via 4e3767a75a7f0fd38b68941d061c7f12f1316ce1.

> Fix DECIMAL precision truncation when arithmetic result precision exceeds 19 
> digits
> -----------------------------------------------------------------------------------
>
>                 Key: FLINK-40360
>                 URL: https://issues.apache.org/jira/browse/FLINK-40360
>             Project: Flink
>          Issue Type: Improvement
>          Components: Flink CDC
>            Reporter: Mao Jiayi
>            Assignee: Mao Jiayi
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: cdc-3.7.0
>
>
> Flink CDC supports DECIMAL types with precision up to 38. However, DECIMAL 
> types inferred by pipeline transform expressions are currently limited to a 
> maximum precision of 19.
> When the required precision of an expression result exceeds 19, the inferred 
> result type is truncated. This reduces the number of integer digits that the 
> result type can represent and may cause otherwise valid DECIMAL values to 
> overflow and become NULL during transform processing.
> h3. Expected Behavior
> Pipeline transform expressions should correctly infer and process DECIMAL 
> results within the precision range supported by Flink CDC, without silently 
> truncating the result precision or losing valid values.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to