kevinjqliu commented on PR #1251:
URL: https://github.com/apache/iceberg-python/pull/1251#issuecomment-2442169570

   > When I run the list_tables method, the output includes both Iceberg tables 
and views. However, when I check the list_tables method, it distinguishes 
between the tables based on a specific table_type parameter.
   
   Im not familiar with how the iceberg view is implemented in the hive 
catalog. Take a look at the HiveCatalog implementation in Java, 
[listTables](https://github.com/apache/iceberg/blob/86a8560315432d6c63af8f6bc1379618d7b432cf/hive-metastore/src/main/java/org/apache/iceberg/hive/HiveCatalog.java#L141-L178)
 and 
[listViews](https://github.com/apache/iceberg/blob/86a8560315432d6c63af8f6bc1379618d7b432cf/hive-metastore/src/main/java/org/apache/iceberg/hive/HiveCatalog.java#L180-L210).
 
   
   > When I check the parameter for the view, I encounter the following 
exception:
   pyiceberg.exceptions.NoSuchPropertyException: Property table_type missing, 
could not determine type.
   
   it looks like views are determined by the `VIRTUAL_VIEW` type instead of the 
table properties
   
https://github.com/apache/iceberg/blob/86a8560315432d6c63af8f6bc1379618d7b432cf/hive-metastore/src/main/java/org/apache/iceberg/hive/HiveCatalog.java#L188C75-L188C87


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