diff --git a/core/src/test/java/com/datastrato/gravitino/TestCatalogOperations.java b/core/src/test/java/com/datastrato/gravitino/TestCatalogOperations.java index c450503680a..7f78a710694 100644 --- a/core/src/test/java/com/datastrato/gravitino/TestCatalogOperations.java +++ b/core/src/test/java/com/datastrato/gravitino/TestCatalogOperations.java @@ -22,6 +22,7 @@ import com.datastrato.gravitino.rel.Table; import com.datastrato.gravitino.rel.TableCatalog; import com.datastrato.gravitino.rel.TableChange; +import com.datastrato.gravitino.rel.expressions.Indexes.Index; import com.datastrato.gravitino.rel.expressions.distributions.Distribution; import com.datastrato.gravitino.rel.expressions.sorts.SortOrder; import com.datastrato.gravitino.rel.expressions.transforms.Transform; @@ -83,7 +84,8 @@ public Table createTable( Map properties, Transform[] partitions, Distribution distribution, - SortOrder[] sortOrders) + SortOrder[] sortOrders, + Index[] indexes) throws NoSuchSchemaException, TableAlreadyExistsException { AuditInfo auditInfo = new AuditInfo.Builder().withCreator("test").withCreateTime(Instant.now()).build(); @@ -98,6 +100,7 @@ public Table createTable( .withDistribution(distribution) .withSortOrders(sortOrders) .withPartitioning(partitions) + .withIndexes(indexes) .build(); if (tables.containsKey(ident)) { @@ -115,6 +118,7 @@ public Table createTable( .withDistribution(distribution) .withSortOrders(sortOrders) .withPartitioning(partitions) + .withIndexes(indexes) .build(); }