You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "yux (Jira)" <ji...@apache.org> on 2024/10/18 02:36:00 UTC

[jira] [Created] (FLINK-36565) Pipeline YAML should allow merging decimal with different precisions

yux created FLINK-36565:
---------------------------

             Summary: Pipeline YAML should allow merging decimal with different precisions
                 Key: FLINK-36565
                 URL: https://issues.apache.org/jira/browse/FLINK-36565
             Project: Flink
          Issue Type: Improvement
          Components: Flink CDC
            Reporter: yux


Currently, it's not possible to merge two Decimal-typed fields with different precision or scaling. Since DECIMAL(p1, s1) and DECIMAL(p2, s2) could be converted to DECIMAL(MAX(p1 - s1, p2 - s2) + MAX(s1, s2), MAX(s1, s2) without any loss, this converting path seems reasonable and worth being added.



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