ajantha-bhat commented on code in PR #6267:
URL: https://github.com/apache/iceberg/pull/6267#discussion_r1032019350


##########
format/spec.md:
##########
@@ -684,7 +684,7 @@ Statistics files metadata within `statistics` table 
metadata field is a struct w
 
 | v1 | v2 | Field name | Type | Description |
 |----|----|------------|------|-------------|
-| _required_ | _required_ | **`snapshot-id`** | `string` | ID of the Iceberg 
table's snapshot the statistics were computed from. |
+| _required_ | _required_ | **`snapshot-id`** | `string` | ID of the Iceberg 
table's snapshot that is using this statistics file. |

Review Comment:
   below line number 699, has a `snapshot-id` required field in `Blob metadata` 
which stores the snapshot-id where the stats are actually computed from. 
   
   So, this field in `StatisticsFile` can be the referred snapshot id. 
   So, Incase of rewrite data files, there can be two `StatisticsFile` with two 
different snapshot id pointing to the same stats file location. This way the 
expire snapshot can know that the stats file is still referenced. 



-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to