You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2020/02/26 08:17:09 UTC

[GitHub] [hive] kgyrtkirk commented on a change in pull request #915: HIVE-22893 StatEstimate

kgyrtkirk commented on a change in pull request #915: HIVE-22893 StatEstimate
URL: https://github.com/apache/hive/pull/915#discussion_r384330577
 
 

 ##########
 File path: standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreSchemaInfo.java
 ##########
 @@ -132,9 +133,11 @@ public String generateInitFileName(String toVersion) throws HiveMetaException {
     String initScriptName = INIT_FILE_PREFIX + toVersion + "." +
         dbType + SQL_FILE_EXTENSION;
     // check if the file exists
-    if (!(new File(getMetaStoreScriptDir() + File.separatorChar +
-          initScriptName).exists())) {
-      throw new HiveMetaException("Unknown version specified for initialization: " + toVersion);
+    File file = new File(getMetaStoreScriptDir() + File.separatorChar +
+          initScriptName);
+    if (!(file.exists())) {
 
 Review comment:
   yeah; sure, actually from time to time I was getting some exception from this area - and I couldn't figure out what file it was looking for...might help later

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org