BePPPower commented on code in PR #24393:
URL: https://github.com/apache/doris/pull/24393#discussion_r1332729373


##########
fe/fe-core/src/main/java/org/apache/doris/datasource/EsExternalCatalog.java:
##########
@@ -44,6 +45,9 @@ public class EsExternalCatalog extends ExternalCatalog {
 
     private static final Logger LOG = 
LogManager.getLogger(EsExternalCatalog.class);
     private EsRestClient esRestClient;
+    private static final List<String> REQUIRED_PROPERTIES = Lists.newArrayList(
+            EsResource.HOSTS
+    );

Review Comment:
   Maybe it is better to use `ImmutableList` or `ImmutableSet`?The same goes 
for other `REQUIRED PROPERTIES`.



##########
fe/fe-core/src/main/java/org/apache/doris/datasource/EsExternalCatalog.java:
##########
@@ -44,6 +45,9 @@ public class EsExternalCatalog extends ExternalCatalog {
 
     private static final Logger LOG = 
LogManager.getLogger(EsExternalCatalog.class);
     private EsRestClient esRestClient;
+    private static final List<String> REQUIRED_PROPERTIES = Lists.newArrayList(
+            EsResource.HOSTS
+    );

Review Comment:
   Maybe it is better to use `ImmutableList` or `ImmutableSet`?The same goes 
for other `REQUIRED PROPERTIES`.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to