use of org.apache.hive.service.cli.operation.GetTypeInfoOperation in project hive by apache.
the class HiveSessionImpl method getTypeInfo.
@Override
public OperationHandle getTypeInfo() throws HiveSQLException {
acquire(true, true);
OperationManager operationManager = getOperationManager();
GetTypeInfoOperation operation = operationManager.newGetTypeInfoOperation(getSession());
OperationHandle opHandle = operation.getHandle();
try {
operation.run();
addOpHandle(opHandle);
return opHandle;
} catch (HiveSQLException e) {
operationManager.closeOperation(opHandle);
throw e;
} finally {
release(true, true);
}
}
Aggregations