use of org.apache.hive.service.rpc.thrift.TOperationHandle in project hive by apache.
the class OperationHandle method toTOperationHandle.
public TOperationHandle toTOperationHandle() {
TOperationHandle tOperationHandle = new TOperationHandle();
tOperationHandle.setOperationId(getHandleIdentifier().toTHandleIdentifier());
tOperationHandle.setOperationType(opType.toTOperationType());
tOperationHandle.setHasResultSet(hasResultSet);
return tOperationHandle;
}
use of org.apache.hive.service.rpc.thrift.TOperationHandle in project hive by apache.
the class CLIService method getQueryId.
@Override
public String getQueryId(TOperationHandle opHandle) throws HiveSQLException {
Operation operation = sessionManager.getOperationManager().getOperation(new OperationHandle(opHandle));
final String queryId = operation.getParentSession().getHiveConf().getVar(ConfVars.HIVEQUERYID);
LOG.debug(opHandle + ": getQueryId() " + queryId);
return queryId;
}
Aggregations