dramaticlly commented on code in PR #19241:
URL: https://github.com/apache/iceberg/pull/19241#discussion_r4761006448


##########
format/spec.md:
##########
@@ -1944,6 +1945,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:
   concern: I think we might more clarification here. The v4 have unified 
entry, so if deleting rows from existing ORC files means we are modeling the 
change by adding deletion vector for existing ORC manifest entry and result as 
an entry to a v4 manifest.
   
   Instead, we shall forbid only tracked_file with status ADDED for ORC 
file_format, so to be explicit 
   > Writers must not add a data file whose file_format is orc to a v4 table, 
and must not write a column_file whose file_format is orc. 
   
   > Data files with file_format orc that were added before the table was 
upgraded to v4 remain valid. They may be written to v4 manifests with status 
EXISTING, MODIFIED, REPLACED or DELETED, and readers must read them.



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