We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cba163 commit 1f4f4c3Copy full SHA for 1f4f4c3
fluss-server/src/main/java/org/apache/fluss/server/utils/TableDescriptorValidation.java
@@ -130,7 +130,7 @@ private static void checkAutoIncColumns(
130
}
131
Optional<Schema.PrimaryKey> primaryKey =
132
tableDescriptor.getSchema().getPrimaryKey();
133
- if (primaryKey.isEmpty()) {
+ if (!primaryKey.isPresent()) {
134
throw new InvalidTableException(
135
"The AUTO_INCREMENT column is not supported in log table.");
136
} else {
0 commit comments