Skip to content

Commit

Permalink
Fix insertion macro for Databricks Unity Catalog (#252)
Browse files Browse the repository at this point in the history
* add database_name to spark__instert_into_metadata_table

* change strategy for fix for databricks insert macro
  • Loading branch information
TannerHopkins authored Dec 8, 2022
1 parent 43e4e89 commit 235618c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/insert_into_metadata_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

{% macro spark__insert_into_metadata_table(database_name, schema_name, table_name, content) -%}
{% set insert_into_table_query %}
insert into {{ schema_name }}.{{ table_name }}
insert into {% if database_name %}{{ database_name }}.{% endif %}{{ schema_name }}.{{ table_name }}
{{ content }}
{% endset %}

Expand Down

0 comments on commit 235618c

Please sign in to comment.