haruki-830 opened a new pull request, #4488: URL: https://github.com/apache/flink-cdc/pull/4488
#### Summary This commit expands the string function coverage of Flink CDC YAML Transform by adding commonly used Flink SQL string manipulation, search, predicate, and encoding functions. These functions can now be used in row-level transform projections and filters. #### Key Changes 1. Additional String Function Support - Added `LTRIM`, `RTRIM`, `BTRIM`, `OVERLAY`, `POSITION`, `LOCATE`, and `INSTR`. - Added `CONCAT_WS`, `LPAD`, `RPAD`, `REPLACE`, `REPEAT`, `LEFT`, and `RIGHT`. - Added `STARTSWITH`, `ENDSWITH`, `TO_BASE64`, and `FROM_BASE64`. - Handles null inputs, Unicode code points, and function-specific boundary cases consistently with Flink SQL semantics. 2. Parser and Runtime Integration - Registered the new functions with their operand and return type definitions in the transform operator table. - Added parser handling for SQL-specific `OVERLAY` and `POSITION` syntax. - Integrated the functions with Janino expression compilation for runtime evaluation. 3. Test Coverage and Documentation - Added unit tests for function behavior, null handling, Unicode strings, and boundary cases. - Added parser and transform runtime tests for valid and invalid expressions. - Added YAML specification coverage for projection results, including matched, unmatched, and null inputs. - Documented the new functions in both the English and Chinese transform documentation. #### JIRA Reference [https://issues.apache.org/jira/browse/FLINK-40223](url) -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
