jzhuge commented on PR #4925:
URL: https://github.com/apache/iceberg/pull/4925#issuecomment-1277065293

   To create a view with SQL representation:
   
   ```java
   ViewRepresentation sqlViewRepresentation = SQLViewRepresentation.builder()
       .sql("SELECT foo FROM base")
       .dialect("spark")
       .defaultCatalog("prodhive")
       .defaultNamespace(ICollections.singleList("default"))
       .build()
   
   viewCatalog.buildView(ident)
       .withSchema(schema)
       .withRepresentation(sqlViewRepresentation)
       .createOrReplace()
   ```


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