From 3c62f538771e0b364e6591153a5d93b7faac9497 Mon Sep 17 00:00:00 2001 From: Clearvive Date: Wed, 10 Jan 2024 15:01:18 +0800 Subject: [PATCH] [#1339] feat(table): Add index for tables. --- .../java/com/datastrato/gravitino/json/TestDTOJsonSerDe.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/test/java/com/datastrato/gravitino/json/TestDTOJsonSerDe.java b/common/src/test/java/com/datastrato/gravitino/json/TestDTOJsonSerDe.java index 8f9feb3e351..774041c5e6d 100644 --- a/common/src/test/java/com/datastrato/gravitino/json/TestDTOJsonSerDe.java +++ b/common/src/test/java/com/datastrato/gravitino/json/TestDTOJsonSerDe.java @@ -46,7 +46,7 @@ public class TestDTOJsonSerDe { "{\"name\":%s,\"type\":%s,\"comment\":%s,\"nullable\":%s,\"autoIncrement\":%s}"; private final String tableJson = - "{\"name\":%s,\"comment\":%s,\"columns\":[%s],\"properties\":%s,\"audit\":%s,\"distribution\":%s,\"sortOrders\":%s,\"partitioning\":%s}"; + "{\"name\":%s,\"comment\":%s,\"columns\":[%s],\"properties\":%s,\"audit\":%s,\"distribution\":%s,\"sortOrders\":%s,\"partitioning\":%s,\"indexes\":%s}"; private String withQuotes(String str) { return "\"" + str + "\""; @@ -242,6 +242,7 @@ public void testTableDTOSerDe() throws Exception { String.format(auditJson, withQuotes(creator), withQuotes(now.toString()), null, null), null, null, + null, null); Assertions.assertEquals(expectedJson, serJson); }