rdblue commented on code in PR #16425:
URL: https://github.com/apache/iceberg/pull/16425#discussion_r4777482226


##########
format/spec.md:
##########
@@ -1801,6 +1807,65 @@ If a delete column in an equality delete file is later 
dropped from the table, i
 
 Manifests hold the same statistics for delete files and data files. For delete 
files, the metrics describe the values that were deleted.
 
+### Column Files
+
+In v4 and later, a data file or leaf manifest may store fields in column files 
listed in [`column_files`](#column-file-fields). The data file or leaf manifest 
whose `column_files` lists a column file is that column file's _base file_.
+
+A column file can use any supported Iceberg file format and must have the same 
row count as its base file. Its rows are aligned with the base file's rows by 
position, including deleted rows.
+
+A column file stores fields identified by field ID. If a field's ID is in a 
column file's `field_ids`, that column file is _responsible_ for the field and 
all fields nested in it. The base file is responsible for every field that no 
column file is responsible for. A field ID may be in the `field_ids` of at most 
one of a base file's column files, and `_row_id` must not be in any column 
file's `field_ids`. For example, a column file with `field_ids = [3, 5]`, where 
both fields are primitive, is responsible for fields 3 and 5.

Review Comment:
   ```suggestion
   A column file stores fields identified by field ID. If a field's ID is in a 
column file's `field_ids`, that column file is _responsible_ for the field and 
all fields nested in it unless a nested field is in a different `field_ids` 
list. The base file is responsible for every field that no column file is 
responsible for. A field ID may be in the `field_ids` at most one column file. 
`_row_id` must not be in any column file's `field_ids`. For example, a column 
file with `field_ids = [3, 5]`, where both fields are primitive, is responsible 
for fields 3 and 5.
   ```
   
   Also, do we need to specify that name mapping is not allowed for columns in 
column files?



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