From f5bd5baf10fe8f5a8b19349d35a7079aca4b5cad Mon Sep 17 00:00:00 2001 From: Rahul Goyal Date: Mon, 9 Dec 2024 12:54:16 +0530 Subject: [PATCH] Fixed issue --- dbt/adapters/spark/impl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dbt/adapters/spark/impl.py b/dbt/adapters/spark/impl.py index 192757aab..ab95e85f2 100644 --- a/dbt/adapters/spark/impl.py +++ b/dbt/adapters/spark/impl.py @@ -176,6 +176,7 @@ def list_relations_without_caching(self, schema_relation: BaseRelation) -> List[ """Distinct Spark compute engines may not support the same SQL featureset. Thus, we must try different methods to fetch relation information.""" try: + relations = [] kwargs = {"schema_relation": schema_relation} # Iceberg behavior: 3-row result of relations obtained show_table_rows = self.execute_macro(