@Override public RowSet fetchResults(OperationHandle opHandle) throws HiveSQLException { return fetchResults( opHandle, FetchOrientation.FETCH_NEXT, defaultFetchRows, FetchType.QUERY_OUTPUT); }
private void verifyInitProperty(String key, String value, SessionHandle sessionHandle) throws Exception { OperationHandle operationHandle = client.executeStatement(sessionHandle, "set " + key, null); RowSet rowSet = client.fetchResults(operationHandle); Assert.assertEquals(1, rowSet.numRows()); // we know rowSet has only one element Assert.assertEquals(key + "=" + value, rowSet.iterator().next()[0]); client.closeOperation(operationHandle); } }
@Override public RowSet fetchResults(OperationHandle opHandle) throws HiveSQLException { // TODO: set the correct default fetch size return fetchResults(opHandle, FetchOrientation.FETCH_NEXT, 10000, FetchType.QUERY_OUTPUT); }
@Override public RowSet fetchResults(OperationHandle opHandle) throws HiveSQLException { // TODO: set the correct default fetch size return fetchResults(opHandle, FetchOrientation.FETCH_NEXT, 10000, FetchType.QUERY_OUTPUT); }
@Override public RowSet fetchResults(OperationHandle opHandle) throws HiveSQLException { // TODO: set the correct default fetch size return fetchResults(opHandle, FetchOrientation.FETCH_NEXT, 10000, FetchType.QUERY_OUTPUT); }
@Override public RowSet fetchResults(OperationHandle opHandle) throws HiveSQLException { return fetchResults( opHandle, FetchOrientation.FETCH_NEXT, defaultFetchRows, FetchType.QUERY_OUTPUT); }
@Override public RowSet fetchResults(OperationHandle opHandle) throws HiveSQLException { // TODO: set the correct default fetch size return fetchResults(opHandle, FetchOrientation.FETCH_NEXT, 10000, FetchType.QUERY_OUTPUT); }
public RowSet fetchResults(OperationHandle opHandle) throws HiveSQLException { try (SessionStateContext ignored = new SessionStateContext()) { return super.fetchResults(opHandle); } }
public RowSet fetchResults(OperationHandle opHandle) throws HiveSQLException { try (SessionStateContext ignored = new SessionStateContext()) { return super.fetchResults(opHandle); } }
public RowSet fetchResults(OperationHandle opHandle, FetchOrientation orientation, long maxRows, FetchType fetchType) throws HiveSQLException { try (SessionStateContext ignored = new SessionStateContext()) { return super.fetchResults(opHandle, orientation, maxRows, fetchType); } }
public RowSet fetchResults(OperationHandle opHandle, FetchOrientation orientation, long maxRows, FetchType fetchType) throws HiveSQLException { try (SessionStateContext ignored = new SessionStateContext()) { return super.fetchResults(opHandle, orientation, maxRows, fetchType); } }