deniskuzZ commented on code in PR #4453:
URL: https://github.com/apache/hive/pull/4453#discussion_r1245473555
##########
ql/src/java/org/apache/hadoop/hive/ql/parse/LoadSemanticAnalyzer.java:
##########
@@ -291,18 +292,36 @@ private void analyzeLoad(ASTNode ast) throws
SemanticException {
ErrorMsg.INVALID_PATH.getMsg(), fromTree, e.getMessage()), e);
}
+ Map<String, String> tmpPartSpec = null;
+ Table table;
+ try {
+ TableName tableName =
HiveTableName.withNoDefault(getUnescapedName((ASTNode) tableTree.getChild(0)));
+ table = db.getTable(tableName);
+ } 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().supportsAppendData(table.getTTable(), true))
{
+
+ tmpPartSpec = getPartSpec();
Review Comment:
pass `tableTree` as param to getPartSpec
--
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]