kevinjqliu commented on code in PR #19241: URL: https://github.com/apache/iceberg/pull/19241#discussion_r4758957141
########## format/spec.md: ########## @@ -65,6 +65,7 @@ Version 4 of the Iceberg spec restructures metadata for improved performance and * Data files and their corresponding deletion vector are stored in a combined entry, removing the need for two-phase planning * Support for [relative locations](#file-locations-in-metadata) in metadata fields * Writing new [equality deletes](#equality-delete-files) is no longer allowed +* Writing new [ORC](#orc) files is no longer allowed Review Comment: Add to "Version 4 overview" section (https://iceberg.apache.org/spec/#version-4-metadata-structure-and-representation):  ########## format/spec.md: ########## @@ -1971,7 +1976,6 @@ When reading an `unknown` column, any corresponding column must be ignored and r | **`variant`** | `struct` with `metadata` and `value` fields. `metadata` and `value` must not be assigned field IDs. | `iceberg.struct-type`=`VARIANT` | Shredding is not supported in ORC. | | **`geometry`** | `binary` | `iceberg.binary-type`=`GEOMETRY` | WKB format, see [Appendix G](#appendix-g-geospatial-notes). | | **`geography`** | `binary` | `iceberg.binary-type`=`GEOGRAPHY` | WKB format, see [Appendix G](#appendix-g-geospatial-notes). | -| **`file`** | `struct` with the `file` sub-fields. Sub-fields must be assigned and accessed by field IDs.| `iceberg.struct-type`=`FILE`| See [File Type](#file-type). | Review Comment: Remove `file` type from "Appendix A: ORC" since `file` is v4-only (https://iceberg.apache.org/spec/#orc):  ########## format/spec.md: ########## @@ -1004,7 +1005,7 @@ The contents of a file are part of a snapshot if its tracking `status` is **live |------------|----------|--------------------------|------------------|-------------| | _required_ | 160 | **`location`** | `string` | Location of the column file. | | _required_ | 161 | **`field_ids`** | `list<162: int>` | Live field IDs stored in this column file. | - | _required_ | 163 | **`file_format`** | `string` | String file format name: `avro`, `orc`, or `parquet`. | + | _required_ | 163 | **`file_format`** | `string` | String file format name: `avro` or `parquet`. | Review Comment: Remove mention of `orc` from `column_file.file_format` since column files are v4-only (https://iceberg.apache.org/spec/#manifest-schema, go to the v4 tab, scroll down to `column_file` Field id 163):  ########## format/spec.md: ########## @@ -2314,6 +2318,12 @@ Equality deletes are prohibited in v4. * In a table upgraded to v4, existing delete manifests and the delete files they track remain valid and must be applied at read time * Readers must continue to apply equality deletes for v2 and v3 tables +Writing new ORC files is prohibited in v4. Review Comment: Add to "Appendix E: Version 4" (https://iceberg.apache.org/spec/#version-4):  ########## format/spec.md: ########## @@ -1944,6 +1947,8 @@ When reading an `unknown` column, any corresponding column must be ignored and r ### ORC +ORC files must not be written or added to v4 tables. Existing ORC files added in v1-v3 remain valid and readable in upgraded v4 tables, and v1-v3 tables may continue to write ORC files. Review Comment: Add v4 prohibition to "Appendix A: ORC" section (https://iceberg.apache.org/spec/#orc):  -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
