@Udf
  public Long trunc(@UdfParameter final Long val) {
    return val;
  }
@Test
  public void shouldHandleNullDecimalPlaces() {
    assertThat(udf.trunc(1.75d, null), is(nullValue()));
    assertThat(udf.trunc(new BigDecimal("1.75"), null), is(nullValue()));
  }