ruanhang1993 commented on code in PR #3596: URL: https://github.com/apache/flink-cdc/pull/3596#discussion_r1832195002
########## docs/content/docs/core-concept/transform.md: ########## @@ -153,6 +153,23 @@ Flink CDC uses [Calcite](https://calcite.apache.org/) to parse expressions and [ | COALESCE(value1 [, value2]*) | coalesce(Object... objects) | Returns the first argument that is not NULL.If all arguments are NULL, it returns NULL as well. The return type is the least restrictive, common type of all of its arguments. The return type is nullable if all arguments are nullable as well. | | IF(condition, true_value, false_value) | condition ? true_value : false_value | Returns the true_value if condition is met, otherwise false_value. E.g., IF(5 > 3, 5, 3) returns 5. | +## Casting Functions + +You can use `CAST( <EXPR> AS <T> )` syntax to convert any valid expression `<EXPR>` to a specific type `<T>`. Possible conversion paths are: + +| Source Type | Target Type | Notes | +|-------------------------------------|-------------|--------------------------------------------------------------------------------------------| +| ANY | STRING | All types can be cast to STRING. | +| NUMERIC, STRING | BOOLEAN | Any non-zero numerics will be evaluated to `TRUE`. | Review Comment: Will -1 be treated as true? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org