yuxiqian commented on code in PR #3572:
URL: https://github.com/apache/flink-cdc/pull/3572#discussion_r1836254296
##########
flink-cdc-runtime/src/test/java/org/apache/flink/cdc/runtime/operators/transform/PreTransformOperatorTest.java:
##########
@@ -526,4 +526,39 @@ void testMetadataTransform() throws Exception {
new StreamRecord<>(
new CreateTableEvent(METADATA_TABLEID,
EXPECTED_METADATA_SCHEMA)));
}
+
+ @Test
+ void testMultiTransform() throws Exception {
+ PreTransformOperator transform =
+ PreTransformOperator.newBuilder()
+ .addTransform(
+ CUSTOMERS_TABLEID.identifier(),
+ "col1, upper(col1) col12",
+ "col1 = 'col1'",
+ "col2",
+ "col12",
+ "key1=value1,key2=value2")
+ .addTransform(
+ CUSTOMERS_TABLEID.identifier(),
+ "col2, upper(col2) col12",
+ "col1 != 'col1'",
+ "col2",
+ "col12",
+ "key1=value1,key2=value2")
+ .build();
Review Comment:
Considering this bug is sequential specific, swapping rules to verify it
would be nice.
--
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]