@Udf
  public <T> boolean contains(
      @UdfParameter final List<T> array,
      @UdfParameter final T val
  ) {
    return array != null && array.contains(val);
  }
@Test
  public void shouldFindLongInList() {
    assertTrue(udf.contains(Arrays.asList(1L, 2L, 3L), 2L));
    assertFalse(udf.contains(Arrays.asList(1L, 2L, 3L), 0L));
    assertFalse(udf.contains(Arrays.asList(1L, 2L, 3L), "1"));
    assertFalse(udf.contains(Arrays.asList(1L, 2L, 3L), "aaa"));
  }