singhpk234 commented on issue #12675:
URL: https://github.com/apache/iceberg/issues/12675#issuecomment-2761633578

   Apologies is your question, can view representations hold more than 1 
dialects, the answer is yes : 
   As per iceberg spec : 
   representations is an Array which stores one sql definition per dialect. 
[spec](https://iceberg.apache.org/view-spec/#sql-representation)
   
   The implementation is that when the engines open the view they only read the 
view specific to them for ex trino : 
[https://github.com/trinodb/trino/blob/6e436e02c506fc42dc407d4abbb08759478ebcac/plugin/trino-iceberg/src/main/java/io/trino/plugin/iceberg/catalog/rest/TrinoRestCatalog.java#L687]
 
   
   you can use java api of view to create view of multiple dialects in one shot 
: 
[ref](https://github.com/apache/iceberg/blob/main/core/src/test/java/org/apache/iceberg/view/ViewCatalogTests.java#L217)
   


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