From ffa4e1a3164282ff1edaed77c773286063fd35f5 Mon Sep 17 00:00:00 2001 From: Takuya UESHIN Date: Wed, 12 Oct 2022 11:38:41 -0700 Subject: [PATCH] Replace tabs to spaces. --- dbt/include/databricks/macros/copy_into.sql | 28 +++++++++---------- .../copy_into/models/expected_target.sql | 8 +++--- tests/integration/copy_into/models/source.sql | 6 ++-- tests/integration/copy_into/models/target.sql | 2 +- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/dbt/include/databricks/macros/copy_into.sql b/dbt/include/databricks/macros/copy_into.sql index 6b33ded16..6376a4b49 100644 --- a/dbt/include/databricks/macros/copy_into.sql +++ b/dbt/include/databricks/macros/copy_into.sql @@ -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 -%} diff --git a/tests/integration/copy_into/models/expected_target.sql b/tests/integration/copy_into/models/expected_target.sql index cd0045d79..0a2bc5e28 100644 --- a/tests/integration/copy_into/models/expected_target.sql +++ b/tests/integration/copy_into/models/expected_target.sql @@ -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) diff --git a/tests/integration/copy_into/models/source.sql b/tests/integration/copy_into/models/source.sql index 84ebd3500..6e77229a4 100644 --- a/tests/integration/copy_into/models/source.sql +++ b/tests/integration/copy_into/models/source.sql @@ -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) diff --git a/tests/integration/copy_into/models/target.sql b/tests/integration/copy_into/models/target.sql index 093edd7dc..c937d5184 100644 --- a/tests/integration/copy_into/models/target.sql +++ b/tests/integration/copy_into/models/target.sql @@ -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)