nk1506 commented on code in PR #8907:
URL: https://github.com/apache/iceberg/pull/8907#discussion_r1448339394


##########
hive-metastore/src/main/java/org/apache/iceberg/hive/HiveTableOperations.java:
##########
@@ -142,9 +143,15 @@ public FileIO io() {
   @Override
   protected void doRefresh() {
     String metadataLocation = null;
+    Table table = null;
+
     try {
-      Table table = metaClients.run(client -> client.getTable(database, 
tableName));
-      HiveOperationsBase.validateTableIsIceberg(table, fullName);
+      table = metaClients.run(client -> client.getTable(database, tableName));
+      HiveOperationsBase.validateTableOrViewIsIceberg(table, fullName);
+
+      if 
(table.getTableType().equalsIgnoreCase(TableType.VIRTUAL_VIEW.name())) {

Review Comment:
   I have segregated Iceberg 
[table](https://github.com/apache/iceberg/pull/8907/files#diff-e502621d52f86cf0ec3187dda30ac61f6b76efb7b6276bc8d233ccb2c836fb98R151)
 and Iceberg 
[View](https://github.com/apache/iceberg/pull/8907/files#diff-db46657b84d66e084e15f31b8dab21577efb2ae7102863f94c6c9477782de676R83)
 check here. 



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