diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b8d765e9..7049c2456 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Fix test related to preventing coercion of boolean values (True, False) to numeric values (0, 1) in query results ([#93](https://github.com/dbt-labs/dbt-bigquery/issues/93)) - Add a check in `get_table_options` to check that the table has a `partition_by` in the config. This will prevent BigQuery from throwing an error since non-partitioned tables cannot have `require_partition_filter` ([#107](https://github.com/dbt-labs/dbt-bigquery/issues/107)) +- Ignore errors of the lack of permissions in `list_relations_without_caching` ([#104](https://github.com/dbt-labs/dbt-bigquery/issues/104)) ### Under the hood - Address BigQuery API deprecation warning and simplify usage of `TableReference` and `DatasetReference` objects ([#97](https://github.com/dbt-labs/dbt-bigquery/issues/97)) @@ -13,6 +14,7 @@ This will prevent BigQuery from throwing an error since non-partitioned tables c ### Contributors - [@hui-zheng](https://github.com/hui-zheng)([#50](https://github.com/dbt-labs/dbt-bigquery/pull/50)) - [@oliverrmaa](https://github.com/oliverrmaa)([#109](https://github.com/dbt-labs/dbt-bigquery/pull/109)) +- [@yu-iskw](https://github.com/yu-iskw)([#108](https://github.com/dbt-labs/dbt-bigquery/pull/108)) ## dbt-bigquery 1.0.0 (December 3, 2021) diff --git a/dbt/adapters/bigquery/impl.py b/dbt/adapters/bigquery/impl.py index cb703f8b0..abc56bd5b 100644 --- a/dbt/adapters/bigquery/impl.py +++ b/dbt/adapters/bigquery/impl.py @@ -273,6 +273,9 @@ def list_relations_without_caching( return [self._bq_table_to_relation(table) for table in all_tables] except google.api_core.exceptions.NotFound: return [] + except google.api_core.exceptions.Forbidden as exc: + logger.debug('list_relations_without_caching error: {}'.format(str(exc))) + return [] def get_relation( self, database: str, schema: str, identifier: str