wzhero1 commented on code in PR #6933:
URL: https://github.com/apache/paimon/pull/6933#discussion_r2680968964
##########
paimon-core/src/main/java/org/apache/paimon/table/system/AuditLogTable.java:
##########
@@ -723,15 +756,26 @@ public void setRowKind(RowKind kind) {
@Override
public boolean isNullAt(int pos) {
if (indexMapping[pos] < 0) {
- // row kind is always not null
+ // row kind and sequence num are always not null
return false;
}
return super.isNullAt(pos);
}
+ @Override
+ public long getLong(int pos) {
+ int index = indexMapping[pos];
+ if (index == AuditLogRead.SEQUENCE_NUMBER_INDEX) {
+ // _SEQUENCE_NUMBER is at index 0 in bottom output
Review Comment:
I've optimized the `_SEQUENCE_NUMBER` index logic in `defaultProjection()`
and `buildProjection(RowType readType)`, so `getLong` no longer needs special
handling here.
--
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]