beryllw opened a new pull request, #4015:
URL: https://github.com/apache/flink-cdc/pull/4015

   **Description:**
   
   This PR addresses the issue identified in FLINK-37677, where setting 
`exclude.schema.changes: [create.table]` in the YAML configuration causes Flink 
CDC to throw an `IllegalStateException`. 
   
   ```
   java.lang.IllegalStateException: Unable to coerce data record from 
my_company.my_branch.customers (schema: columns={`id` INT,`name` STRING NOT 
NULL,`age` SMALLINT}, primaryKeys=id, options=()) to 
my_company.my_branch.customers (schema: null)
   
        at 
org.apache.flink.cdc.runtime.operators.schema.regular.SchemaOperator.lambda$handleDataChangeEvent$1(SchemaOperator.java:215)
        at java.util.Optional.orElseThrow(Optional.java:290)
        at 
org.apache.flink.cdc.runtime.operators.schema.regular.SchemaOperator.handleDataChangeEvent(SchemaOperator.java:212)
        at 
org.apache.flink.cdc.runtime.operators.schema.regular.SchemaOperator.processElement(SchemaOperator.java:150)
        at 
org.apache.flink.cdc.runtime.operators.schema.regular.SchemaEvolveTest.processEvent(SchemaEvolveTest.java:2643)
        at 
org.apache.flink.cdc.runtime.operators.schema.regular.SchemaEvolveTest.testLenientSchemaEvolvesExcludeCreate(SchemaEvolveTest.java:2600)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at java.util.ArrayList.forEach(ArrayList.java:1259)
        at java.util.ArrayList.forEach(ArrayList.java:1259)
   ```
   
   **Solution:**
   
   - Always accept create.table event
   - Skip apply create.table schema change event {} to external system
   
   **Testing:**
   
   Added unit tests.
   


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