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

xushiyan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git


The following commit(s) were added to refs/heads/master by this push:
     new c9725899c3 [MINOR] Fix convertPathWithScheme tests (#6251)
c9725899c3 is described below

commit c9725899c3f9516412dcc683875d81ac226d9b45
Author: Y Ethan Guo <ethan.guoyi...@gmail.com>
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