This is an automated email from the ASF dual-hosted git repository.

codope pushed a commit to branch release-0.12.0
in repository https://gitbox.apache.org/repos/asf/hudi.git

commit a701201fac89e5f8f0d60c1b9192bff848df8b3e
Author: Y Ethan Guo <[email protected]>
AuthorDate: Fri Jul 29 19:26:30 2022 -0700

    [MINOR] Fix convertPathWithScheme tests (#6251)
---
 .../test/java/org/apache/hudi/common/fs/TestStorageSchemes.java    | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git 
a/hudi-common/src/test/java/org/apache/hudi/common/fs/TestStorageSchemes.java 
b/hudi-common/src/test/java/org/apache/hudi/common/fs/TestStorageSchemes.java
index 9b173254ac..354ad6d0cc 100644
--- 
a/hudi-common/src/test/java/org/apache/hudi/common/fs/TestStorageSchemes.java
+++ 
b/hudi-common/src/test/java/org/apache/hudi/common/fs/TestStorageSchemes.java
@@ -69,6 +69,11 @@ public class TestStorageSchemes {
     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"));
   }
 }

Reply via email to