ramesh0201 commented on code in PR #5022:
URL: https://github.com/apache/hive/pull/5022#discussion_r1579753195
##########
ql/src/java/org/apache/hadoop/hive/ql/parse/LoadSemanticAnalyzer.java:
##########
@@ -244,6 +245,7 @@ public void analyzeInternal(ASTNode ast) throws
SemanticException {
} else {
analyzeLoad(ast);
}
+ queryState.setCommandType(HiveOperation.LOAD);
Review Comment:
Yes for certain load queries we transform to insert into queries by calling
the reparseAndSuperAnalyze method at
https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/parse/LoadSemanticAnalyzer.java#L470.
Example, one of the cases is during the load on the bucketed tables at
https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/parse/LoadSemanticAnalyzer.java#L341
Because we transform to insert query which is always tagged as QUERY type.
But we may want to preserve the actual query's type in this case, as it is what
is provided by the user.
--
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]