Skip to content

Commit

Permalink
Merge pull request #138 from aPeterHeise/snowflake-delta-support
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyyeo authored Sep 21, 2022
2 parents 8c274a0 + cf89403 commit 223ded7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions macros/plugins/snowflake/create_external_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@
{% if external.pattern -%} pattern = '{{external.pattern}}' {%- endif %}
{% if external.integration -%} integration = '{{external.integration}}' {%- endif %}
file_format = {{external.file_format}}
{% if external.table_format -%} table_format = '{{external.table_format}}' {%- endif %}
{% endmacro %}
9 changes: 8 additions & 1 deletion sample_sources/snowflake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,11 @@ sources:
#
# if you do not specify *any* columns for a snowpiped table, dbt will also
# include `value`, the JSON blob of all file contents.


- name: delta_tbl
description: "External table using Delta files"
external:
location: "@stage" # reference an existing external stage
file_format: "( type = parquet )" # fully specified here, or reference an existing file format
table_format: delta # specify the table format
auto_refresh: false # requires configuring an event notification from Amazon S3 or Azure

0 comments on commit 223ded7

Please sign in to comment.