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 deletion 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.
##########
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:
suggestion: I believe we also mentioned ORC in "partition statistics files"
section at
https://github.com/apache/iceberg/blob/121c73fcdcdc7d851ce65634e92fd2a5dc6c3254/format/spec.md?plain=1#L1602,
might worth removing ORC from example, or adding some clarification as well
for V4.
--
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]