VinaySagarGonabavi commented on code in PR #4279:
URL: https://github.com/apache/flink-cdc/pull/4279#discussion_r2921458838
##########
flink-cdc-runtime/src/test/java/org/apache/flink/cdc/runtime/operators/transform/TransformOperatorWithSchemaEvolveTest.java:
##########
@@ -840,6 +840,262 @@ void testSchemaChangeWithPostWildcard() throws Exception {
.runTests("inserting columns at last");
}
+ /**
+ * Tests duplicate AddColumnEvent handling with a wildcard projection
({@code *, id + age as
+ * computed}) and a filter ({@code name <> 'Alice'}). This exercises the
full pre+post pipeline
+ * with a wildcard rule: the first AddColumnEvent for "extras" passes
through both operators,
+ * while the duplicate is filtered by PreTransformOperator (which also
prevents it from reaching
+ * PostTransformOperator). A subsequent DataChangeEvent verifies the
pipeline remains functional
+ * after duplicate filtering, with the computed column correctly evaluated.
+ */
+ @Test
+ void testDuplicateAddColumnEventPreTransform() throws Exception {
Review Comment:
New ITCase is added
--
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]