dengzhhu653 commented on code in PR #6383:
URL: https://github.com/apache/hive/pull/6383#discussion_r2987050420


##########
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/tools/schematool/MetastoreSchemaTool.java:
##########
@@ -305,33 +299,22 @@ protected void execSql(String scriptDir, String 
scriptFile) throws IOException,
     execSql(scriptDir + File.separatorChar + scriptFile);
   }
 
-  // Generate the beeline args per hive conf and execute the given script
+  /**
+   * Executes the given SQL script file against the metastore database via 
{@link IdempotentDDLExecutor}.
+   * Each statement in the script is executed individually over a direct JDBC 
connection with
+   * auto-commit enabled. Errors that indicate an object already exists or is 
already gone are
+   * silently ignored according to the per-database {@link DbErrorCodes}; all 
other SQL errors are
+   * rethrown as {@link IOException}.
+   */

Review Comment:
   do we need to deal with the HiveSchemaTool as well?



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