chenjian2664 opened a new pull request, #18855:
URL: https://github.com/apache/iceberg/pull/18855

   Backports #18696 to Flink 1.20 and 2.2. `SortKeySerializer` wrote FIXED and 
BINARY sort key fields from the buffer's full backing array. A binary key 
truncated by the sort order was therefore deserialized as the original 
untruncated value. Keys learned by range distribution then did not match 
incoming keys, and records fell back to round robin. The serializer now writes 
only the buffer's remaining bytes through `ByteBuffers.toByteArray`. With this 
change, the affected files in Flink 1.20 and 2.2 are identical to their Flink 
2.3 versions.
   
   ---
   **AI Disclosure**
   - Model: Claude Opus 5.5
   - Platform/Tool: Claude Code
   - Human Oversight: [unknown - human to fill in]
   - Prompt Summary: Backport the #18696 binary sort key serialization fix from 
Flink 2.3 to Flink 1.20 and 2.2; the code changes are copied from the merged 
Flink 2.3 change.


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