public static Schema hiveTableSchema(Schema schema, PartitionSpec spec) {
    if (spec.isUnpartitioned()) {
      return schema;
    } else {
      return TypeUtil.selectNot(schema, spec.identitySourceIds());
    }
  }
Converts the Iceberg schema to a Hive schema. Filter partition fields from iceberg schema
fields.

@param schema The original Iceberg schema to convert
@param spec The original Iceberg partition spec to convert
@return The Hive table schema
amoro-format-mixed/amoro-mixed-hive/src/main/java/org/apache/amoro/hive/utils/HiveSchemaUtil.java