Search in sources :

Example 1 with GetTypeInfoOperation

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);
    }
}
Also used : GetTypeInfoOperation(org.apache.hive.service.cli.operation.GetTypeInfoOperation) HiveSQLException(org.apache.hive.service.cli.HiveSQLException) OperationManager(org.apache.hive.service.cli.operation.OperationManager) OperationHandle(org.apache.hive.service.cli.OperationHandle)

Aggregations

HiveSQLException (org.apache.hive.service.cli.HiveSQLException)1 OperationHandle (org.apache.hive.service.cli.OperationHandle)1 GetTypeInfoOperation (org.apache.hive.service.cli.operation.GetTypeInfoOperation)1 OperationManager (org.apache.hive.service.cli.operation.OperationManager)1