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


##########
format/view-spec.md:
##########
@@ -96,11 +96,15 @@ Summary is a string to string map of metadata about a view 
version. Common metad
 
 View definitions can be represented in multiple ways. Representations are 
documented ways to express a view definition.
 
-A view version can have more than one representation. All representations for 
a version must express the same underlying definition. Engines are free to 
choose the representation to use.
+A view version can have more than one representation. All representations for 
a version must express the same underlying definition. Engines are free to 
choose the representation(s) to use.
+
+View versions are immutable. Once a version is created, it cannot be changed. 
This means that representations for a version cannot be changed. If a view 
definition changes (or new representations are to be added), a new version must 
be created.
 
 Each representation is an object with at least one common field, `type`, that 
is one of the following:
 * `sql`: a SQL SELECT statement that defines the view
 
+In addition to `type`, each representation defines a `dialect`. A `dialect` is 
a string that identifies the query language dialect used in the representation. 
For example, `trino` or `spark`. A view version cannot have duplicate 
representations with the same `type` and `dialect`.

Review Comment:
   I'm fine with allowing multiple entries for a single type to allow more than 
one type + dialect pair.



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