Anurag-S1ngh opened a new pull request, #19253: URL: https://github.com/apache/iceberg/pull/19253
## Summary - `BigQueryMetastoreCatalog.removeProperties` called `namespaceExists`, which loads the dataset, and then `client.removeParameters`, which loads it again. `setProperties` and the Glue and Hive catalogs check existence once. - Drop the pre-check. `removeParameters` already throws `NoSuchNamespaceException` when the dataset is missing. ## Changes - `BigQueryMetastoreCatalog`: remove the redundant namespace existence check. - `TestBigQueryCatalog`: spy the fake client and assert that `removeProperties` loads the namespace once. ## Testing - `./gradlew :iceberg-bigquery:test --tests "org.apache.iceberg.gcp.bigquery.TestBigQueryCatalog"` passes. - The new test fails with two loads before the change. - `spotlessApply` run for the module. Closes #17059 -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
