From e9ca9974c1c2c7335b86dfeade3b3a00ad202b98 Mon Sep 17 00:00:00 2001 From: Corentin Hembise Date: Fri, 26 Aug 2022 17:58:08 +0200 Subject: [PATCH 1/2] Remove unnecessary generated new lines in star.sql --- macros/sql/star.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/sql/star.sql b/macros/sql/star.sql index e0833275..99787e22 100644 --- a/macros/sql/star.sql +++ b/macros/sql/star.sql @@ -9,7 +9,7 @@ {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #} {%- if not execute -%} {{ return('*') }} - {% endif %} + {%- endif -%} {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %} From e43e08668894d0845887dd17659ab0a82ec3faeb Mon Sep 17 00:00:00 2001 From: Corentin Hembise Date: Fri, 26 Aug 2022 18:29:58 +0200 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 181b25c9..c6cf070a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,8 +13,12 @@ ## New features - New feature to omit the `source_column_name` column on the `union_relations` macro ([#331](https://github.com/dbt-labs/dbt-utils/issues/331), [#624](https://github.com/dbt-labs/dbt-utils/pull/624)) +## Fixes +- Better handling of whitespaces in the star macro ([#651](https://github.com/dbt-labs/dbt-utils/pull/651)) + ## Contributors: - [@christineberger](https://github.com/christineberger) (#624) +- [@courentin](https://github.com/courentin) (#651) # dbt-utils v0.8.6