@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 shouldComputeIntRangeWithNegativeOddStepLong() {
    final List<Long> range = rangeUdf.generateSeriesLong(9, 0, -3);
    assertThat(range, hasSize(4));
    long val = 9;
    for (final long i : range) {
      assertThat(val, is(i));
      val -= 3;
    }
  }