@Udf
  public List<Long> generateSeriesLong(
      @UdfParameter(description = "The beginning of the series") final long start,
      @UdfParameter(description = "Marks the end of the series (inclusive)") final long end
  ) {
    return generateSeriesLong(start, end, end - start > 0 ? 1 : -1);
  }
@Test
  public void shouldThrowIfStepWrongSignLong1() {
    // When:
    final Exception e = assertThrows(
        KsqlFunctionException.class,
        () -> rangeUdf.generateSeriesLong(0, 10, -1)
    );

    // Then:
    assertThat(e.getMessage(), containsString(
        "GENERATE_SERIES step has wrong sign"));
  }