-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Add more columns to Iceberg $files system table #29044
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1490,9 +1490,9 @@ SELECT * FROM "test_table$files"; | |
| ``` | ||
|
|
||
| ```text | ||
| content | file_path | record_count | file_format | file_size_in_bytes | column_sizes | value_counts | null_value_counts | nan_value_counts | lower_bounds | upper_bounds | key_metadata | split_offsets | equality_ids | ||
| ----------+-------------------------------------------------------------------------------------------------------------------------------+-----------------+---------------+----------------------+----------------------+-------------------+--------------------+-------------------+-----------------------------+-----------------------------+----------------+----------------+--------------- | ||
| 0 | hdfs://hadoop-master:9000/user/hive/warehouse/test_table/data/c1=3/c2=2021-01-14/af9872b2-40f3-428f-9c87-186d2750d84e.parquet | 1 | PARQUET | 442 | {1=40, 2=40, 3=44} | {1=1, 2=1, 3=1} | {1=0, 2=0, 3=0} | <null> | {1=3, 2=2021-01-14, 3=1.3} | {1=3, 2=2021-01-14, 3=1.3} | <null> | <null> | <null> | ||
| content | file_path | record_count | file_format | file_size_in_bytes | column_sizes | value_counts | null_value_counts | nan_value_counts | lower_bounds | upper_bounds | key_metadata | split_offsets | equality_ids | file_sequence_number | data_sequence_number | referenced_data_file | pos | manifest_location | first_row_id | content_offset | content_size_in_bytes | ||
| ----------+-------------------------------------------------------------------------------------------------------------------------------+-----------------+---------------+----------------------+----------------------+-------------------+--------------------+-------------------+-----------------------------+-----------------------------+----------------+----------------+----------------+----------------------+----------------------+----------------------+-----+------------------------------------------------------------------------------------------------------------------------------+--------------+----------------+---------------------- | ||
| 0 | hdfs://hadoop-master:9000/user/hive/warehouse/test_table/data/c1=3/c2=2021-01-14/af9872b2-40f3-428f-9c87-186d2750d84e.parquet | 1 | PARQUET | 442 | {1=40, 2=40, 3=44} | {1=1, 2=1, 3=1} | {1=0, 2=0, 3=0} | <null> | {1=3, 2=2021-01-14, 3=1.3} | {1=3, 2=2021-01-14, 3=1.3} | <null> | <null> | <null> | 1 | 1 | <null> | 0 | hdfs://hadoop-master:9000/user/hive/warehouse/test_table/metadata/snap-6116016324956900164-0-3c1b2496-0670-4e37-81f6.avro | <null> | <null> | <null> | ||
| ``` | ||
|
|
||
| The output of the query has the following columns: | ||
|
|
@@ -1570,6 +1570,34 @@ The output of the query has the following columns: | |
| * - `readable_metrics` | ||
| - `JSON` | ||
| - File metrics in human-readable form. | ||
| * - `file_sequence_number` | ||
| - `BIGINT` | ||
| - The sequence number of the file, tracking when the file was added. | ||
| * - `data_sequence_number` | ||
| - `BIGINT` | ||
| - The data sequence number for the file, used for determining row-level deletes | ||
| applicability. | ||
| * - `referenced_data_file` | ||
| - `VARCHAR` | ||
| - The path of the data file that a delete file applies to. Only set for | ||
| position delete files and deletion vectors, `NULL` for data files. | ||
| * - `pos` | ||
| - `BIGINT` | ||
| - The ordinal position of the file in the manifest. | ||
| * - `manifest_location` | ||
| - `VARCHAR` | ||
| - The location of the manifest that contains this file. | ||
| * - `first_row_id` | ||
| - `BIGINT` | ||
| - The ID of the first row in the data file. | ||
| * - `content_offset` | ||
| - `BIGINT` | ||
| - The offset in the file where the content starts. Only set for deletion | ||
| vectors, `NULL` for data files. | ||
| * - `content_size_in_bytes` | ||
| - `BIGINT` | ||
| - The size of the content in bytes. Only set for deletion vectors, `NULL` for | ||
| data files. | ||
|
Comment on lines
+1593
to
+1600
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the current name is misleading, as the functionality is clearly valuable for data files as well. I understand the intent behind it, but in that case, I would recommend either incorporating "delete" or "deletion" into the name for clarity - otherwise looks confusion with "file_size_in_bytes"
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think its valueable for data files as in iceberg this property is set to I could rename that and
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know it is from Iceberg, thus I am not strong for it, ok for me to keep it. |
||
| ::: | ||
|
ebyhr marked this conversation as resolved.
|
||
|
|
||
| ##### `$entries` and `$all_entries` tables | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️