Samrat002 commented on code in PR #47:
URL: 
https://github.com/apache/flink-connector-aws/pull/47#discussion_r1263235270


##########
flink-catalog-aws/flink-catalog-aws-glue/src/main/java/org/apache/flink/table/catalog/glue/GlueCatalogOptions.java:
##########
@@ -0,0 +1,102 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.table.catalog.glue;
+
+import org.apache.flink.annotation.Internal;
+import org.apache.flink.configuration.ConfigOption;
+import org.apache.flink.configuration.ConfigOptions;
+import org.apache.flink.connector.aws.config.AWSConfigConstants;
+import org.apache.flink.table.catalog.CommonCatalogOptions;
+import org.apache.flink.table.catalog.GenericInMemoryCatalog;
+import org.apache.flink.table.catalog.glue.constants.AWSGlueConfigConstants;
+import org.apache.flink.table.catalog.glue.constants.GlueCatalogConstants;
+
+import java.util.HashSet;
+import java.util.Set;
+
+/** Collection of {@link ConfigOption} used in GlueCatalog. */
+@Internal
+public class GlueCatalogOptions extends CommonCatalogOptions {
+
+    public static final String IDENTIFIER = "glue";
+    public static final ConfigOption<String> DEFAULT_DATABASE =
+            ConfigOptions.key(CommonCatalogOptions.DEFAULT_DATABASE_KEY)
+                    .stringType()
+                    .defaultValue(GenericInMemoryCatalog.DEFAULT_DB);
+
+    public static final ConfigOption<String> INPUT_FORMAT =
+            ConfigOptions.key(GlueCatalogConstants.TABLE_INPUT_FORMAT)
+                    .stringType()
+                    .noDefaultValue();
+
+    public static final ConfigOption<String> OUTPUT_FORMAT =
+            ConfigOptions.key(GlueCatalogConstants.TABLE_OUTPUT_FORMAT)
+                    .stringType()
+                    .noDefaultValue();
+
+    public static final ConfigOption<String> GLUE_CATALOG_ENDPOINT =
+            ConfigOptions.key(AWSGlueConfigConstants.GLUE_CATALOG_ENDPOINT)
+                    .stringType()
+                    .noDefaultValue();
+
+    public static final ConfigOption<String> GLUE_CATALOG_ID =
+            
ConfigOptions.key(AWSGlueConfigConstants.GLUE_CATALOG_ID).stringType().noDefaultValue();
+
+    public static final ConfigOption<String> GLUE_ACCOUNT_ID =
+            
ConfigOptions.key(AWSGlueConfigConstants.GLUE_ACCOUNT_ID).stringType().noDefaultValue();

Review Comment:
   In `GlueCatalogOptions` class `GLUE_ACCOUNT_ID` is optional config which 
user can pass to connect to different glue account. 
   One of the use case where user can create 2 catalog in same session. one 
catalog can points to glue account (may be in different aws account) and 
another to different glue account. 



-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to