[ https://issues.apache.org/jira/browse/FLINK-36866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leonard Xu updated FLINK-36866: ------------------------------- Fix Version/s: cdc-3.3.0 > 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)