haruki-830 opened a new pull request, #4496:
URL: https://github.com/apache/flink-cdc/pull/4496

   #### Summary
   
   This commit extends Flink CDC Transform expressions with Flink SQL 
collection constructors and functions. It adds support for constructing and 
operating on nested ARRAY, MAP, and ROW values in projection and filter 
expressions.
   
   #### Key Changes
   
   1. Collection Constructors
   - Added support for `ARRAY[...]`, `MAP[...]`, and `ROW(...)`.
   - Added recursive type coercion for nested collection constructors.
   - Added ROW type conversion with generated field names such as `f0` and `f1`.
   
   2. Collection Functions
   - Added support for `CARDINALITY`, `ARRAY_CONTAINS`, `ARRAY_POSITION`, and 
`ELEMENT`.
   - Supports arrays and maps where applicable, including nested values and 
NULL handling.
   - Reports an error when `ELEMENT` receives an array containing multiple 
elements.
   
   3. Parser and Expression Compilation
   - Enabled explicit `ROW(...)` constructors while preserving existing MySQL 
conformance behavior.
   - Added Calcite operator registration and Janino expression generation for 
the new constructors and functions.
   - Supports the new expressions in both projections and filters.
   
   4. Test Coverage and Documentation
   - Added unit tests for constructors, functions, NULL behavior, nested 
values, and error cases.
   - Added Transform specification tests for projections, filters, and nested 
collection types.
   - Updated the English and Chinese Transform documentation.
   
   #### JIRA Reference
   
   
[https://issues.apache.org/jira/browse/FLINK-40313](https://issues.apache.org/jira/browse/FLINK-40313)


-- 
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]

Reply via email to