chenjian2664 opened a new pull request, #10990: URL: https://github.com/apache/paimon/pull/10990
### Purpose In partial-update tables, a field using `first_non_null_value` inside a sequence group loses its value when a late record with an older sequence value has a null in that field: the older record overwrites the stored value with null. This affects out-of-order partial-update streams, such as CDC with late events. `PartialUpdateMergeFunction` aggregates older records through `aggReversed`, whose default swaps the arguments, so `first_non_null_value` returns the null input. Override `aggReversed` so an older non-null value takes precedence and an older null keeps the current value. ### 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]
