You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Ruan Hang (Jira)" <ji...@apache.org> on 2025/01/24 08:57:00 UTC

[jira] [Resolved] (FLINK-36866) Support more CDC YAML numeric casting paths

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

Ruan Hang resolved FLINK-36866.
-------------------------------
    Resolution: Fixed

> Support more CDC YAML numeric casting paths
> -------------------------------------------
>
>                 Key: FLINK-36866
>                 URL: https://issues.apache.org/jira/browse/FLINK-36866
>             Project: Flink
>          Issue Type: Bug
>          Components: Flink CDC
>    Affects Versions: cdc-3.2.1
>            Reporter: yux
>            Assignee: yux
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: cdc-3.3.1
>
>
> Currently, there's literally no way to convert floating points to integers, since it was implemented like `castToInteger = Integer.valueOf(_.toString())`, but Java's `Integer#valueOf` doesn't accept any input string that consists anything more than digits.
> That is to say, `CAST("1.0" AS INT)` or `CAST(3.14 AS INT)` will both fail, making this converting function not usable.



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