nastra commented on code in PR #13217: URL: https://github.com/apache/iceberg/pull/13217#discussion_r2166829121
########## bigquery/src/main/java/org/apache/iceberg/gcp/bigquery/BigQueryMetastoreClientImpl.java: ########## @@ -485,22 +488,32 @@ public List<Tables> list(DatasetReference datasetReference, boolean listAllTable // distinguish Iceberg // tables for us to filter out those results since invoking `getTable` on them would // correctly raise a `NoSuchIcebergTableException` for being inoperable by this plugin. + + List<Tables> allTables = tablesStream.collect(Collectors.toList()); + if (!listAllTables) { - tablesStream = - tablesStream - .parallel() - .filter( - table -> { - try { - load(table.getTableReference()); - } catch (NoSuchTableException e) { - return false; - } - return true; - }); - } Review Comment: ```suggestion ``` -- 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