[
https://issues.apache.org/jira/browse/FLINK-36866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17906452#comment-17906452
]
Leonard Xu commented on FLINK-36866:
------------------------------------
Fixed via master(3.3-SNAPSHOT):b0a7d920b904f2d5d5aab83d9751b893ac36fda4
> 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.0
>
>
> 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)