FANNG1 commented on code in PR #6362: URL: https://github.com/apache/gravitino/pull/6362#discussion_r1929705331
########## flink-connector/flink/src/main/java/org/apache/gravitino/flink/connector/catalog/BaseCatalog.java: ########## @@ -521,6 +552,11 @@ protected CatalogBaseTable toFlinkTable(Table table) { .column(column.name(), column.nullable() ? flinkType.nullable() : flinkType.notNull()) .withComment(column.comment()); } + Index[] indices = table.index(); Review Comment: Could you add a check here, the index array contains at more one index, and it should be Primary index. -- 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: commits-unsubscr...@gravitino.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org