wzhero1 opened a new pull request, #6858: URL: https://github.com/apache/paimon/pull/6858
### Purpose <!-- What is the purpose of the change --> This PR adds support for accessing system fields (specifically `sequence_number`) in `AuditLogTable` and `BinlogTable`. Currently, downstream consumers often need the `sequence_number` to ensure strict ordering or to implement exactly-once processing when reading from audit logs or binlogs. However, these system tables previously did not expose this field. This change implements `KeyValueSystemFieldsRecordReader` to enable the projection of system fields for KeyValue records, allowing users to query `sequence_number` directly from audit log and binlog tables. ### Tests <!-- List UT and IT cases to verify this change --> - Added `IncrementalReadSystemFieldsTest` to verify functionality. - Updated `AuditLogTableTest` and `BinlogTableTest` to cover `sequence_number` read cases. ### API and Format <!-- Does this change affect API or storage format --> - No change to storage format. - No public API change. ### Documentation <!-- Does this change introduce a new feature --> - No documentation change required. -- 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]
