hdygxsj commented on code in PR #100:
URL:
https://github.com/apache/incubator-paimon-webui/pull/100#discussion_r1408709444
##########
paimon-web-api/src/main/java/org/apache/paimon/web/api/catalog/PaimonServiceFactory.java:
##########
@@ -26,15 +26,30 @@
import org.apache.commons.lang3.StringUtils;
+import java.util.HashMap;
+import java.util.Map;
+
/** Paimon service factory. */
public class PaimonServiceFactory {
- public static PaimonService createFileSystemCatalogService(String name,
String warehouse) {
+ public static PaimonService createFileSystemCatalogService(
+ String name, String warehouse, Map<String, String> catalogOptions)
{
+ if (catalogOptions == null) {
+ catalogOptions = new HashMap<>();
+ }
Options options = new Options();
options.set(CatalogProperties.WAREHOUSE, warehouse + "/" + name);
-
+ String fileSystemType = catalogOptions.get("fileSystemType");
+ if ("s3".equals(fileSystemType)) {
Review Comment:
No other options need to be set for the local file system, and HDFS is not
currently supported
--
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]