danny0405 commented on code in PR #7981:
URL: https://github.com/apache/hudi/pull/7981#discussion_r1109316185


##########
hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/table/catalog/TestHoodieCatalog.java:
##########
@@ -294,7 +294,16 @@ public void testGetTable() throws Exception {
     CatalogBaseTable actualTable = catalog.getTable(tablePath);
     // validate schema
     Schema actualSchema = actualTable.getUnresolvedSchema();
-    Schema expectedSchema = 
Schema.newBuilder().fromResolvedSchema(EXPECTED_TABLE_SCHEMA).build();
+    List<Column> expectedColumns = Arrays.asList(
+        Column.physical("uuid", DataTypes.STRING().notNull()),
+        Column.physical("name", DataTypes.STRING()),
+        Column.physical("age", DataTypes.INT()),
+        Column.physical("tss", DataTypes.TIMESTAMP(3)),
+        Column.physical("partition", DataTypes.STRING())
+    );
+    Schema expectedSchema = Schema.newBuilder()
+        .fromResolvedSchema(new ResolvedSchema(expectedColumns, 
Collections.emptyList(), CONSTRAINTS))

Review Comment:
   Shouldn't we fix the `EXPECTED_TABLE_SCHEMA` though?



-- 
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]

Reply via email to