@Udf(schema = "ARRAY<STRUCT<K STRING, V DOUBLE>>")
  public List<Struct> entriesDouble(
      @UdfParameter(description = "The map to create entries from") final Map<String, Double> map,
      @UdfParameter(description = "If true then the resulting entries are sorted by key")
      final boolean sorted
  ) {
    return entries(map, DOUBLE_STRUCT_SCHEMA, sorted);
  }
@Test
  public void shouldComputeDoubleEntriesSorted() {
    final Map<String, Double> map = createMap(Double::valueOf);
    shouldComputeEntriesSorted(map, () -> entriesUdf.entriesDouble(map, true));
  }