Skip to content

Commit

Permalink
[MINOR] Fix convertPathWithScheme tests (apache#6251)
Browse files Browse the repository at this point in the history
  • Loading branch information
yihua authored and fengjian committed Apr 5, 2023
1 parent 8efeec8 commit c4c1c29
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 c4c1c29

Please sign in to comment.