xushiyan commented on code in PR #7068:
URL: https://github.com/apache/hudi/pull/7068#discussion_r1008352259


##########
hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/HiveSyncConfig.java:
##########
@@ -108,45 +108,45 @@ public static class HiveSyncConfigParams {
             + "instead of org.apache.hudi package. Use this when you are in 
the process of migrating from "
             + "com.uber.hoodie to org.apache.hudi. Stop using this after you 
migrated the table definition to "
             + "org.apache.hudi input format.")
-    public Boolean usePreApacheInputFormat;
+    public boolean usePreApacheInputFormat;
     @Deprecated
-    @Parameter(names = {"--use-jdbc"}, description = "Hive jdbc connect url")
-    public Boolean useJdbc;
+    @Parameter(names = {"--use-jdbc"}, description = "Hive jdbc connect url", 
arity = 1)
+    public Boolean useJdbc = true;
     @Parameter(names = {"--metastore-uris"}, description = "Hive metastore 
uris")
     public String metastoreUris;
     @Parameter(names = {"--sync-mode"}, description = "Mode to choose for Hive 
ops. Valid values are hms,glue,jdbc and hiveql")
     public String syncMode;
-    @Parameter(names = {"--auto-create-database"}, description = "Auto create 
hive database")
-    public Boolean autoCreateDatabase;
+    @Parameter(names = {"--auto-create-database"}, description = "Auto create 
hive database", arity = 1)
+    public boolean autoCreateDatabase = true;
     @Parameter(names = {"--ignore-exceptions"}, description = "Ignore hive 
exceptions")
-    public Boolean ignoreExceptions;
+    public boolean ignoreExceptions;

Review Comment:
   @xicm thanks for making further changes. Making it work like `--key 
true/false` is a breaking change for users, so we have to avoid. But this is an 
existing problem, correct? from the beginning, if users don't set `--use-jdbc`, 
and because `useJdbc` defaults to `true`, users won't be able to overwrite it 
at all. Let's keep the behavior unchanged (not ideal but it's not an urgent 
problem) and focus on fixing the reported issue.



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