Skip to content

Commit

Permalink
Replace tabs to spaces. (#214)
Browse files Browse the repository at this point in the history
### Description

Replaces tabs to spaces.
  • Loading branch information
ueshin committed Oct 12, 2022
1 parent fd3a86e commit 4e9def3
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
28 changes: 14 additions & 14 deletions dbt/include/databricks/macros/copy_into.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@
{%- endif -%}
{%- if source_credential or source_encryption %}
WITH (
{% if source_credential -%}
credential (
{%- for name in source_credential -%}
'{{ name }}' = '{{ source_credential[name] }}' {%- if not loop.last %}, {% endif -%}
{%- endfor -%}
)
{%- endif %}
{% if source_encryption -%}
encryption (
{%- for name in source_encryption -%}
'{{ name }}' = '{{ source_encryption[name] }}' {%- if not loop.last %}, {% endif -%}
{%- endfor -%}
)
{%- endif %}
{%- if source_credential %}
credential (
{%- for name in source_credential -%}
'{{ name }}' = '{{ source_credential[name] }}' {%- if not loop.last %}, {% endif -%}
{%- endfor -%}
)
{%- endif %}
{%- if source_encryption %}
encryption (
{%- for name in source_encryption -%}
'{{ name }}' = '{{ source_encryption[name] }}' {%- if not loop.last %}, {% endif -%}
{%- endfor -%}
)
{%- endif %}
)
{%- endif -%}
{%- endset -%}
Expand Down
8 changes: 4 additions & 4 deletions tests/integration/copy_into/models/expected_target.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{config(materialized='table')}}

select * from values
(0, 'Zero', '2022-01-01'),
(1, 'Alice', '2022-01-01'),
(2, 'Bob', '2022-01-02')
as t(id, name, date)
(0, 'Zero', '2022-01-01'),
(1, 'Alice', '2022-01-01'),
(2, 'Bob', '2022-01-02')
as t(id, name, date)
6 changes: 3 additions & 3 deletions tests/integration/copy_into/models/source.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{config(materialized='table', file_format='parquet')}}

select * from values
(1, 'Alice', '2022-01-01'),
(2, 'Bob', '2022-01-02')
t(id, name, date)
(1, 'Alice', '2022-01-01'),
(2, 'Bob', '2022-01-02')
t(id, name, date)
2 changes: 1 addition & 1 deletion tests/integration/copy_into/models/target.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{config(materialized='table')}}

select * from values
(0, 'Zero', '2022-01-01') as t(id, name, date)
(0, 'Zero', '2022-01-01') as t(id, name, date)

0 comments on commit 4e9def3

Please sign in to comment.