Skip to content

Commit

Permalink
Fix #712: missing catalog in one place (#714)
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-db authored Jun 25, 2024
1 parent 55b4802 commit 7ec014f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
## dbt-databricks Next (TBD)
## dbt-databricks 1.8.3 (June 25, 2024)

### Fixes

- Fix missing catalog name in one of the metadata gathering calls ([714](https://github.com/databricks/dbt-databricks/pull/714))

## dbt-databricks 1.8.2 (June 24, 2024)

Expand Down
3 changes: 2 additions & 1 deletion dbt/include/databricks/macros/adapters/metadata.sql
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@
lower(data_source_format) as file_format,
table_owner
from `system`.`information_schema`.`tables`
where table_schema = '{{ relation.schema }}'
where table_catalog = '{{ relation.database }}'
and table_schema = '{{ relation.schema }}'
{% if relation.identifier %}
and table_name = '{{ relation.identifier }}'
{% endif %}
Expand Down

0 comments on commit 7ec014f

Please sign in to comment.