Skip to content

Commit

Permalink
[MINOR] Fix convertPathWithScheme tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yihua committed Jul 29, 2022
1 parent e04b318 commit c52b9f9
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ public void testConversionToNewSchema() {
assertEquals(s3TablePath3, HoodieWrapperFileSystem.convertPathWithScheme(s3TablePath3, "s3"));

Path hdfsTablePath = new Path("hdfs://sandbox.foo.com:8020/test.1234/table1");
System.out.println(HoodieWrapperFileSystem.convertPathWithScheme(hdfsTablePath, "hdfs"));
assertEquals(hdfsTablePath, HoodieWrapperFileSystem.convertPathWithScheme(hdfsTablePath, "hdfs"));

Path localTablePath = new Path("file:/var/table1");
Path localTablePathNoPrefix = new Path("/var/table1");
assertEquals(localTablePath, HoodieWrapperFileSystem.convertPathWithScheme(localTablePath, "file"));
assertEquals(localTablePath, HoodieWrapperFileSystem.convertPathWithScheme(localTablePathNoPrefix, "file"));
}
}

0 comments on commit c52b9f9

Please sign in to comment.