@Udf(description = "Returns all substrings of the input that matches the given regex pattern")
  public List<String> regexpExtractAll(
      @UdfParameter(description = "The regex pattern") final String pattern,
      @UdfParameter(description = "The input string to apply regex on") final String input
  ) {
    return regexpExtractAll(pattern, input, 0);
  }
@Test(expected = KsqlFunctionException.class)
  public void shouldHaveBadPattern() {
    udf.regexpExtractAll("(()", "test string");
  }