@Override
    public Boolean struct(GroupType struct, List<Boolean> hasIds) {
      for (Boolean hasId : hasIds) {
        if (hasId) {
          return true;
        }
      }
      return struct.getId() != null;
    }
Prunes columns from a Parquet file schema that was written without field ids.

<p>Files that were written without field ids are read assuming that schema evolution preserved
column order. Deleting columns was not allowed.

<p>The order of columns in the resulting Parquet schema matches the Parquet file.

@param fileSchema schema from a Parquet file that does not have field ids.
@param expectedSchema expected schema
@return a parquet schema pruned using the expected schema
amoro-format-mixed/amoro-mixed-hive/src/main/java/org/apache/iceberg/parquet/AdaptHiveParquetSchemaUtil.java