Bigquery: local variable 'view_names' referenced before assignment
Affected module Does it impact the UI, backend or Ingestion Framework?
Describe the bug Getting error with incremental ingestion is enabled for Bigquery
[2025-10-13, 03:12:32 UTC] {docker.py:436} INFO - [2025-10-13 03:12:32] WARNING {metadata.Ingestion:common_db_source:407} - Fetching tables names failed for schema summary due to - local variable 'view_names' referenced before assignment [2025-10-13, 03:12:32 UTC] {docker.py:436} INFO - [2025-10-13 03:12:32] DEBUG {metadata.Ingestion:common_db_source:410} - Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/metadata/ingestion/source/database/common_db_source.py", line 379, in get_tables_name_and_type for view_and_type in self.query_view_names_and_types(schema_name): File "/usr/local/lib/python3.10/site-packages/metadata/ingestion/source/database/bigquery/metadata.py", line 446, in query_view_names_and_types for view_name in view_names UnboundLocalError: local variable 'view_names' referenced before assignment
To Reproduce
incremental ingestion is enabled for Bigquery
Expected behavior A clear and concise description of what you expected to happen.
Version:
- OS: [e.g. iOS]
- Python version:
- OpenMetadata version: [e.g. 0.8]
- OpenMetadata Ingestion package version: [e.g.
openmetadata-ingestion[docker]==XYZ]
Additional context Add any other context about the problem here.