vingov commented on code in PR #5659:
URL: https://github.com/apache/hudi/pull/5659#discussion_r898727113


##########
hudi-snowflake/src/main/java/org/apache/hudi/snowflake/sync/SnowflakeSyncConfig.java:
##########
@@ -0,0 +1,123 @@
+/*
+ * 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.hudi.snowflake.sync;
+
+import org.apache.hudi.common.config.TypedProperties;
+
+import com.beust.jcommander.Parameter;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+/**
+ * Configs needed to sync data into Snowflake.
+ */
+public class SnowflakeSyncConfig implements Serializable {
+  public static String SNOWFLAKE_SYNC_PROPERTIES_FILE = 
"hoodie.snowflake.sync.properties_file";
+  public static String SNOWFLAKE_SYNC_STORAGE_INTEGRATION = 
"hoodie.snowflake.sync.storage_integration";
+  public static String SNOWFLAKE_SYNC_TABLE_NAME = 
"hoodie.snowflake.sync.table_name";
+  public static String SNOWFLAKE_SYNC_SYNC_BASE_PATH = 
"hoodie.snowflake.sync.base_path";
+  public static String SNOWFLAKE_SYNC_SYNC_BASE_FILE_FORMAT = 
"hoodie.snowflake.sync.base_file_format";
+  public static String SNOWFLAKE_SYNC_PARTITION_FIELDS = 
"hoodie.snowflake.sync.partition_fields";
+  public static String SNOWFLAKE_SYNC_PARTITION_EXTRACT_EXPRESSION = 
"hoodie.snowflake.sync.partition_extract_expression";
+  public static String SNOWFLAKE_SYNC_USE_FILE_LISTING_FROM_METADATA = 
"hoodie.snowflake.sync.use_file_listing_from_metadata";

Review Comment:
   updated.



##########
hudi-snowflake/src/main/java/org/apache/hudi/snowflake/sync/SnowflakeSyncConfig.java:
##########
@@ -0,0 +1,123 @@
+/*
+ * 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.hudi.snowflake.sync;
+
+import org.apache.hudi.common.config.TypedProperties;
+
+import com.beust.jcommander.Parameter;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+/**
+ * Configs needed to sync data into Snowflake.
+ */
+public class SnowflakeSyncConfig implements Serializable {
+  public static String SNOWFLAKE_SYNC_PROPERTIES_FILE = 
"hoodie.snowflake.sync.properties_file";
+  public static String SNOWFLAKE_SYNC_STORAGE_INTEGRATION = 
"hoodie.snowflake.sync.storage_integration";
+  public static String SNOWFLAKE_SYNC_TABLE_NAME = 
"hoodie.snowflake.sync.table_name";
+  public static String SNOWFLAKE_SYNC_SYNC_BASE_PATH = 
"hoodie.snowflake.sync.base_path";
+  public static String SNOWFLAKE_SYNC_SYNC_BASE_FILE_FORMAT = 
"hoodie.snowflake.sync.base_file_format";
+  public static String SNOWFLAKE_SYNC_PARTITION_FIELDS = 
"hoodie.snowflake.sync.partition_fields";
+  public static String SNOWFLAKE_SYNC_PARTITION_EXTRACT_EXPRESSION = 
"hoodie.snowflake.sync.partition_extract_expression";
+  public static String SNOWFLAKE_SYNC_USE_FILE_LISTING_FROM_METADATA = 
"hoodie.snowflake.sync.use_file_listing_from_metadata";
+  public static String SNOWFLAKE_SYNC_ASSUME_DATE_PARTITIONING = 
"hoodie.snowflake.sync.assume_date_partitioning";
+
+  @Parameter(names = {"--properties-file"}, description = "name of the 
snowflake profile properties file.", required = true)
+  public String propertiesFile;
+  @Parameter(names = {"--storage-integration"}, description = "name of the 
storage integration in snowflake", required = true)
+  public String storageIntegration;
+  @Parameter(names = {"--table-name"}, description = "name of the target table 
in snowflake", required = true)
+  public String tableName;
+  @Parameter(names = {"--base-path"}, description = "Base path of the hoodie 
table to sync", required = true)
+  public String basePath;
+  @Parameter(names = {"--base-file-format"}, description = "Base path of the 
hoodie table to sync")
+  public String baseFileFormat = "PARQUET";
+  @Parameter(names = {"--partitioned-by"}, description = "Comma-delimited 
partition fields. Default to non-partitioned.")
+  public List<String> partitionFields = new ArrayList<>();
+  @Parameter(names = {"--partition-extract-expr"}, description = 
"Comma-delimited partition extract expression. Default to non-partitioned.")
+  public List<String> partitionExtractExpr = new ArrayList<>();
+  @Parameter(names = {"--use-file-listing-from-metadata"}, description = 
"Fetch file listing from Hudi's metadata")
+  public Boolean useFileListingFromMetadata = false;
+  @Parameter(names = {"--assume-date-partitioning"}, description = "Assume 
standard yyyy/mm/dd partitioning, this"

Review Comment:
   removed.



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