JanKaul commented on code in PR #11041:
URL: https://github.com/apache/iceberg/pull/11041#discussion_r2086126336


##########
format/view-spec.md:
##########
@@ -160,6 +179,57 @@ Each entry in `version-log` is a struct with the following 
fields:
 | _required_  | `timestamp-ms` | Timestamp when the view's 
`current-version-id` was updated (ms from epoch) |
 | _required_  | `version-id`   | ID that `current-version-id` was set to |
 
+#### Storage Table Identifier
+
+The table identifier for the storage table that stores the precomputed results.
+
+| Requirement | Field name     | Description |
+|-------------|----------------|-------------|
+| _optional_  | `catalog`      | A string specifying the name of the catalog. 
If set to `null`, the catalog is the same as the view's catalog |
+| _required_  | `namespace`    | A list of strings for namespace levels |
+| _required_  | `name`         | A string specifying the name of the 
table/view |

Review Comment:
   The current spec is designed such that the materialized view does not need 
to be updated when the storage table is updated. When the materialized view is 
refreshed only the storage table is updated. The idea is that the definition of 
the materialized view is still correct after the refresh.
   However, if the materialized view is updated, the storage table should be in 
the `invalid` state. That's why the `view-version` is stored as part of the 
`refresh-state`. When the materialized view is updated, it cannot be known if 
the data in the storage table is still correct. That's why a full refresh has 
to be performed for an `invalid` state.



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