@Udf(schema = "ARRAY<STRUCT<K STRING, V STRING>>")
  public List<Struct> entriesString(
      @UdfParameter(description = "The map to create entries from") final Map<String, String> map,
      @UdfParameter(description = "If true then the resulting entries are sorted by key")
      final boolean sorted
  ) {
    return entries(map, STRING_STRUCT_SCHEMA, sorted);
  }
@Test
  public void shouldReturnNullListForNullMapString() {
    assertNull(entriesUdf.entriesString(null, false));
  }