From bf5a1d6bfb51146befe3f01817d6c138dacd8470 Mon Sep 17 00:00:00 2001 From: TalkWithKeyboard <610347922@qq.com> Date: Fri, 29 Apr 2022 17:48:46 +0800 Subject: [PATCH] fix: the tbl name in the result of show tables/views --- dbt/adapters/spark/impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt/adapters/spark/impl.py b/dbt/adapters/spark/impl.py index 0375f1a65..ff6d5b642 100644 --- a/dbt/adapters/spark/impl.py +++ b/dbt/adapters/spark/impl.py @@ -151,7 +151,7 @@ def list_relations_without_caching( for tbl in tables: rel_type = ('view' if tbl['tableName'] in views.columns["viewName"].values() else 'table') relation = self.Relation.create( - schema=tbl['database'], + schema=tbl['namespace'], identifier=tbl['tableName'], type=rel_type, )