findinpath commented on code in PR #9830:
URL: https://github.com/apache/iceberg/pull/9830#discussion_r2988855490
##########
api/src/main/java/org/apache/iceberg/view/ViewVersion.java:
##########
@@ -78,4 +79,15 @@ default String defaultCatalog() {
/** The default namespace to use when the SQL does not contain a namespace.
*/
Namespace defaultNamespace();
+
+ /**
+ * The storage table identifier for materialized views.
+ *
+ * <p>When null, the entity is a regular view. When set, the entity is a
materialized view and
+ * this identifies the storage table that holds the precomputed data. The
storage table must be in
+ * the same catalog as the materialized view.
+ */
+ default TableIdentifier storageTable() {
Review Comment:
Instead of exposing the storage table in the metastore, this could be
`storageMetadataLocation`
However, before refreshing the MV, the metadata location would not exist, so
we'd need something to be able to distinguish whether we're dealing with a
regular view or a materialized view.
--
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]