diqiu50 commented on code in PR #10998:
URL: https://github.com/apache/gravitino/pull/10998#discussion_r3245623705


##########
catalogs/catalog-hive/src/main/java/org/apache/gravitino/catalog/hive/HiveCatalogOperations.java:
##########
@@ -398,6 +408,17 @@ public NameIdentifier[] listTables(Namespace namespace) 
throws NoSuchSchemaExcep
                         catalogName, schemaIdent.name(), hudiFilter, 
MAX_TABLES));
         removeHudiTables(allTables, hudiTables);
       }
+
+      // Always filter out VIRTUAL_VIEW entries so they don't appear in table 
listings
+      String viewFilter =
+          String.format("%stableType like \"VIRTUAL_VIEW\"", 
HIVE_FILTER_FIELD_PARAMS);

Review Comment:
   Can we apply a single filter and perform one query to retrieve the expected 
tables?



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

Reply via email to