wzhero1 commented on code in PR #6858:
URL: https://github.com/apache/paimon/pull/6858#discussion_r2652130580
##########
paimon-core/src/main/java/org/apache/paimon/table/system/AuditLogTable.java:
##########
@@ -142,6 +144,9 @@ public String name() {
public RowType rowType() {
List<DataField> fields = new ArrayList<>();
fields.add(SpecialFields.ROW_KIND);
+ fields.add(
+ SpecialFields.SEQUENCE_NUMBER.newType(
+ SpecialFields.SEQUENCE_NUMBER.type().nullable()));
Review Comment:
I prefer keeping the schema consistent across table types. Having
`SEQUENCE_NUMBER` only in primary-key tables but not in append-only tables
increases user cognitive load when querying audit_log or binlog system tables.
A consistent schema with null for unavailable values is semantically correct
and easier to understand.
--
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]