wzhero1 commented on code in PR #6933:
URL: https://github.com/apache/paimon/pull/6933#discussion_r2681001821
##########
paimon-flink/paimon-flink-common/src/test/java/org/apache/paimon/flink/BatchFileStoreITCase.java:
##########
@@ -1053,6 +1053,108 @@ public void testBinlogTableWithProjection() {
.containsExactly(Row.of("+I", new String[] {"A"}));
}
+ @Test
+ public void testAuditLogTableWithSequenceNumberEnabled() {
+ // Create primary key table with
changelog-read.sequence-number.enabled option
+ sql(
+ "CREATE TABLE test_table_seq (a int PRIMARY KEY NOT ENFORCED,
b int, c AS a + b) "
+ + "WITH
('changelog-read.sequence-number.enabled'='true');");
Review Comment:
I've added `dynamicOptions` detection to prevent users from accidentally
misusing it in SQL hints.
```java
public Table copy(Map<String, String> dynamicOptions) {
if (Boolean.parseBoolean(
dynamicOptions.getOrDefault(
AUDITLOG_READ_SEQUENCE_NUMBER_ENABLED.key(), "false"))) {
throw new UnsupportedOperationException(
"auditlog-read.sequence-number.enabled is not supported by
hint.");
}
return new AuditLogTable(wrapped.copy(dynamicOptions));
}
```
--
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]