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


##########
hudi-trino/src/main/java/io/trino/plugin/hudi/storage/HudiTrinoStorage.java:
##########
@@ -54,6 +54,25 @@ public HudiTrinoStorage(TrinoFileSystem fileSystem, 
TrinoStorageConfiguration st
         this.fileSystem = fileSystem;
     }
 
+    public HudiTrinoStorage(StoragePath path, StorageConfiguration<?> 
storageConf)
+    {
+        this(fileSystemOf(storageConf, path), 
trinoConfigurationOf(storageConf, path));
+    }
+
+    private static TrinoStorageConfiguration 
trinoConfigurationOf(StorageConfiguration<?> storageConf, StoragePath path)
+    {

Review Comment:
   +1



##########
hudi-trino/src/main/java/io/trino/plugin/hudi/storage/HudiTrinoStorage.java:
##########
@@ -54,6 +54,25 @@ public HudiTrinoStorage(TrinoFileSystem fileSystem, 
TrinoStorageConfiguration st
         this.fileSystem = fileSystem;
     }
 
+    public HudiTrinoStorage(StoragePath path, StorageConfiguration<?> 
storageConf)
+    {
+        this(requireTrinoStorageConfiguration(storageConf, path), path);
+    }
+
+    private HudiTrinoStorage(TrinoStorageConfiguration storageConf, 
StoragePath path)
+    {

Review Comment:
   +1



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