deniskuzZ commented on code in PR #5613:
URL: https://github.com/apache/hive/pull/5613#discussion_r1923533397
##########
ql/src/java/org/apache/hadoop/hive/ql/DriverContext.java:
##########
@@ -137,13 +152,26 @@ public void setPlan(QueryPlan plan) {
this.runtimeContext = Utilities.getFirstTezTask(plan.getRootTasks())
.map(TezTask::getRuntimeContext)
.orElse(null);
+ this.queryProperties = plan.getQueryProperties();
}
}
+ public String getQueryType() {
+ return queryType == null ? "UNKNOWN" : queryType;
Review Comment:
why `null` handling is different from the `getDdlType`
--
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]