stevenzwu commented on PR #10757:
URL: https://github.com/apache/iceberg/pull/10757#issuecomment-2251276689

   > @stevenzwu: Could you please help me understand why are the changes in 
flink/v1.19/flink/src/main/java/org/apache/iceberg/flink/sink/shuffle/SortKeySerializer.java
 are needed?
   
   I assume you were asking about the diff btw 1.19 and 1.18. There were change 
of API in 1.19 for `TypeSerializerSnapshot` interface.
   ```
   1.18
       @Override
       public TypeSerializerSchemaCompatibility<SortKey> 
resolveSchemaCompatibility(
           TypeSerializer<SortKey> newSerializer) {
   
   1.19
       @Override
       public TypeSerializerSchemaCompatibility<SortKey> 
resolveSchemaCompatibility(
           TypeSerializerSnapshot<SortKey> oldSerializerSnapshot) {
   ```
   
   But I did find a bug in the 1.18 implementation that didn't compare the 
SortOder for compatibility, this is fixed in the latest commit that I just 
pushed.
   
   Would also need to add a unit test to test the compatibility check. It could 
be done in this PR or a separate one.
   
   
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to