juntaozhang opened a new issue, #7260:
URL: https://github.com/apache/paimon/issues/7260

   ### Search before asking
   
   - [x] I searched in the [issues](https://github.com/apache/paimon/issues) 
and found nothing similar.
   
   
   ### Motivation
   
    RichEventParser.parseSchemaChange() always returns a CdcSchema object even 
when there is no actual schema change. This causes empty schema change events 
to be sent to the Schema Evolution operator via side output, resulting in 
unnecessary network overhead and processing.
   
   
![Image](https://github.com/user-attachments/assets/22b900c4-17e6-441e-959f-037979103c91)
   
   ### Solution
   
    Return null from `parseSchemaChange()` when there is no schema change (no 
field changes and no comment changes). This is consistent with 
`RichCdcMultiplexRecordEventParser` which already returns null when the table
     should not be synchronized.
   
   ### Anything else?
   
   after optimize:
   
![Image](https://github.com/user-attachments/assets/530c791d-5e5d-45a0-8991-14a7ff9b8e93)
   
   ### Are you willing to submit a PR?
   
   - [x] I'm willing to submit a PR!


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