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):
   
   ![Version 4 overview with ORC prohibition 
highlighted](https://github.com/user-attachments/assets/df1d40eb-03a3-4ea9-a9b7-2c18ba6e1d94)



##########
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):
   
   ![Appendix A ORC table with v4 file type row 
removed](https://github.com/user-attachments/assets/e05b59d4-f34e-49c4-bc0e-50e133e37bd5)



##########
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):
   
   ![v4 column_file file_format restricted to avro or 
parquet](https://github.com/user-attachments/assets/658ec38a-2468-4a8d-a423-c3ba265b82fe)



##########
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):
   
   ![Appendix E Version 4 ORC prohibition 
section](https://github.com/user-attachments/assets/0f38f0ee-f252-436d-9f8f-9b1135c25372)



##########
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):
   
   ![Appendix A ORC section with v4 prohibition 
highlighted](https://github.com/user-attachments/assets/20642b05-bc79-4b91-a071-6e4d2d2f2e54)



-- 
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]

Reply via email to