StandardErrorCode(int code, ErrorType type) { errorCode = new ErrorCode(code, name(), type); }
private void testInvalidAggregation(Long[] x, int n) { try { testAggregation(null, createLongArraysBlock(x), createLongRepeatBlock(n, x.length)); } catch (PrestoException e) { assertEquals(e.getErrorCode().getName(), INVALID_FUNCTION_ARGUMENT.name()); } }
private void testInvalidAggregation(Long[] x, int n) { try { testAggregation(new long[] {}, createLongsBlock(x), createLongRepeatBlock(n, x.length)); } catch (PrestoException e) { assertEquals(e.getErrorCode().getName(), INVALID_FUNCTION_ARGUMENT.name()); } }
private void testInvalidAggregation(Double[] x, int n) { try { testAggregation(new long[] {}, createDoublesBlock(x), createLongRepeatBlock(n, x.length)); } catch (PrestoException e) { assertEquals(e.getErrorCode().getName(), INVALID_FUNCTION_ARGUMENT.name()); } }
StandardErrorCode(int code, ErrorType type) { errorCode = new ErrorCode(code, name(), type); }
private void testInvalidAggregation(Long[] x, int n) { try { testAggregation(new long[] {}, createLongsBlock(x), createLongRepeatBlock(n, x.length)); } catch (PrestoException e) { assertEquals(e.getErrorCode().getName(), INVALID_FUNCTION_ARGUMENT.name()); } }
private void testInvalidAggregation(Long[] x, int n) { try { testAggregation(null, createLongArraysBlock(x), createLongRepeatBlock(n, x.length)); } catch (PrestoException e) { assertEquals(e.getErrorCode().getName(), INVALID_FUNCTION_ARGUMENT.name()); } }
private void testInvalidAggregation(Double[] x, int n) { try { testAggregation(new long[] {}, createDoublesBlock(x), createLongRepeatBlock(n, x.length)); } catch (PrestoException e) { assertEquals(e.getErrorCode().getName(), INVALID_FUNCTION_ARGUMENT.name()); } }