yuxiqian opened a new pull request, #3272: URL: https://github.com/apache/flink-cdc/pull/3272
This closes [FLINK-35256](https://issues.apache.org/jira/browse/FLINK-35256). Flink CDC 3.1.0 brought transform feature, allowing column type / value transformation prior to data routing process. However after the transformation, column type marked as `NOT NULL` lost their annotation, causing some downstream sinks to fail since they require primary key to be NOT NULL. Here's the minimum reproducible example about this problem: ```yaml source: type: mysql ... sink: type: starrocks name: StarRocks Sink ... pipeline: name: Sync MySQL Database to StarRocks parallelism: 4 transform: source-table: reicigo.\.* projection: ID, UPPER(ID) AS UPID ``` MySQL source table schema definition is as follows: ``` CREATE TABLE table1 ( ID VARCHAR(17) NOT NULL, ... PRIMARY KEY (ID) ); ``` -- 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]
