@Udf(schema = "ARRAY<STRUCT<K STRING, V BOOLEAN>>")
  public List<Struct> entriesBoolean(
      @UdfParameter(description = "The map to create entries from") final Map<String, Boolean> map,
      @UdfParameter(description = "If true then the resulting entries are sorted by key")
      final boolean sorted
  ) {
    return entries(map, BOOLEAN_STRUCT_SCHEMA, sorted);
  }
@Test
  public void shouldComputeBooleanEntries() {
    final Map<String, Boolean> map = createMap(i -> i % 2 == 0);
    shouldComputeEntries(map, () -> entriesUdf.entriesBoolean(map, false));
  }