zeroflag commented on a change in pull request #1633:
URL: https://github.com/apache/hive/pull/1633#discussion_r528567059



##########
File path: service/src/java/org/apache/hive/service/cli/operation/Operation.java
##########
@@ -102,7 +109,7 @@ protected Operation(HiveSession parentSession,
         MetricsConstant.COMPLETED_OPERATION_PREFIX, state);
     queryState = new QueryState.Builder()
                      .withConfOverlay(confOverlay)
-                     .withGenerateNewQueryId(true)
+                     .withGenerateNewQueryId(!embedded)

Review comment:
       An hplsql script contains both declarative (for example select) and 
imperative statements (for example a for loop). The script is executed by an 
HplSqlOperation but this will start SQLOperations when it sees hive ql stuffs. 
So this flag indicates that one operation was started by an other operation.




----------------------------------------------------------------
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to