yux created FLINK-36866:
---------------------------
Summary: 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
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)