jackylee-ch commented on PR #10162:
URL: https://github.com/apache/paimon/pull/10162#issuecomment-5826032725

   Thanks @Akash3121, good catch. Fixed via your first option: 
`_sort_by_primary_key` now folds each same-key run in `sequence.field` order 
(honoring `sequence.field.sort-order`, nulls-first) before merging, reusing the 
same accessors `split_read` feeds `builtin_seq_comparator`, so the write buffer 
and read heap agree by construction. Complex/VARIANT sequence fields (already 
rejected on read) are dropped from the sort keys instead of crashing the write. 
Added a one-batch regression: two same-key rows in one `write_arrow`, 
highest-sequence first, now keeps that row for `last_value`. PTAL.
   


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