voonhous commented on code in PR #18816:
URL: https://github.com/apache/hudi/pull/18816#discussion_r3887429088


##########
hudi-cli/src/test/java/org/apache/hudi/cli/commands/TestTableCommand.java:
##########
@@ -136,11 +136,11 @@ public void testDefaultCreate() {
 
     // Test meta
     HoodieTableMetaClient client = HoodieCLI.getTableMetaClient();
-    assertEquals(archivePath, client.getArchivePath());
+    assertEquals(archivePath, client.getArchivePath().toString());
     assertEquals(tablePath, client.getBasePath().toString());
     assertEquals(metaPath, client.getMetaPath().toString());
     assertEquals(HoodieTableType.COPY_ON_WRITE, client.getTableType());
-    assertEquals(new Integer(1), 
client.getTimelineLayoutVersion().getVersion());
+    
assertEquals(org.apache.hudi.common.table.timeline.versioning.TimelineLayoutVersion.CURR_VERSION,
 client.getTimelineLayoutVersion().getVersion());

Review Comment:
   Done -- `TestTableCommand` now carries `import static 
org.apache.hudi.common.table.timeline.versioning.TimelineLayoutVersion.CURR_VERSION;`
 and the assertion reads `assertEquals(CURR_VERSION, ...)`. Picked up when the 
file was rebased onto master, which had already landed the same change.



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