use of org.apache.hive.service.cli.operation.GetCatalogsOperation in project hive by apache.
the class HiveSessionImpl method getCatalogs.
@Override
public OperationHandle getCatalogs() throws HiveSQLException {
acquire(true, true);
OperationManager operationManager = getOperationManager();
GetCatalogsOperation operation = operationManager.newGetCatalogsOperation(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