You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2020/06/19 13:43:13 UTC
[GitHub] [hive] kgyrtkirk commented on a change in pull request #1145: HIVE-23722: Show the operation's drilldown link to client
kgyrtkirk commented on a change in pull request #1145:
URL: https://github.com/apache/hive/pull/1145#discussion_r442838789
##########
File path: service/src/java/org/apache/hive/service/cli/operation/Operation.java
##########
@@ -452,4 +452,8 @@ public String getQueryTag() {
public String getQueryId() {
return queryState.getQueryId();
}
+
+ public boolean showOperationDrilldownLink() {
Review comment:
I don't feel that this method should be closely connected to this interface
##########
File path: service/src/java/org/apache/hive/service/cli/CLIService.java
##########
@@ -149,6 +149,10 @@ public UserGroupInformation getHttpUGI() {
return this.httpUGI;
}
+ public HiveServer2 getHiveServer2() {
Review comment:
instead of giving access to the HiveServer2 object: how about a method like `getWebServerUrl()` ?
##########
File path: service/src/java/org/apache/hive/service/cli/thrift/ThriftCLIService.java
##########
@@ -569,7 +569,19 @@ public TExecuteStatementResp ExecuteStatement(TExecuteStatementReq req) throws T
queryTimeout) : cliService.executeStatement(sessionHandle, statement, confOverlay,
queryTimeout);
resp.setOperationHandle(operationHandle.toTOperationHandle());
- resp.setStatus(OK_STATUS);
+ Operation operation = cliService.getSessionManager().getOperationManager()
+ .getOperation(operationHandle);
+ if (operation.showOperationDrilldownLink() && cliService.getHiveServer2().getWebServerUrl() != null) {
Review comment:
I think this should be moved to somewhere around `CliService#executeStatement`
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org