public static ResourceSchema convert(Schema icebergSchema) throws IOException {
    ResourceSchema result = new ResourceSchema();
    result.setFields(convertFields(icebergSchema.columns()));
    return result;
  }
@Test
  public void testTupleInMap() throws IOException {
    Schema icebergSchema =
        new Schema(
            optional(
                1,
                "nested_list",
                MapType.ofOptional(
                    2,
                    3,
                    StringType.get(),
                    ListType.ofOptional(
                        4,
                        StructType.of(
                            required(5, "id", LongType.get()),
                            optional(6, "data", StringType.get()))))));

    ResourceSchema pigSchema = SchemaUtil.convert(icebergSchema);
    // The output should contain a nested struct within a list within a map, I think.
    assertThat(pigSchema.toString()).isEqualTo("nested_list:[{(id:long,data:chararray)}]");
  }