deniskuzZ commented on code in PR #4453:
URL: https://github.com/apache/hive/pull/4453#discussion_r1245076831


##########
ql/src/java/org/apache/hadoop/hive/ql/parse/LoadSemanticAnalyzer.java:
##########
@@ -291,18 +291,43 @@ private void analyzeLoad(ASTNode ast) throws 
SemanticException {
           ErrorMsg.INVALID_PATH.getMsg(), fromTree, e.getMessage()), e);
     }
 
+    Map<String, String> tmpPartSpec = null;
+    Table table;
+    try {
+      table = 
db.getTable(HiveTableName.withNoDefault(getUnescapedName((ASTNode) 
tableTree.getChild(0))));
+    } catch (HiveException e) {
+      throw new SemanticException(
+          
ASTErrorUtils.getMsg(ErrorMsg.CANNOT_RETRIEVE_TABLE_METADATA.getMsg(), 
tableTree.getChild(0), e.getMessage()),
+          e);
+    }
+
+    if (tableTree.getChildCount() == 2 && table.isNonNative() && 
table.getStorageHandler() != null &&

Review Comment:
   table.getStorageHandler() is not null for nonNativeTables



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