Skip to content

Commit

Permalink
Clean up the rendered output from star
Browse files Browse the repository at this point in the history
  • Loading branch information
mjumbewu committed Dec 3, 2019
1 parent c506a36 commit 34a7773
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions macros/sql/star.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% macro star(from, relation_alias=False, except=[]) -%}

{%- do dbt_utils._is_relation(from, 'star') -%}

{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}
Expand All @@ -19,8 +19,8 @@

{%- for col in include_cols %}

{% if relation_alias %} {{ relation_alias }}.{% endif %} {{ dbt_utils.identifier(col) }} {% if not loop.last %},
{% endif %}
{%- if relation_alias %}{{ relation_alias }}.{% else %}{% endif %}{{ dbt_utils.identifier(col)|trim }}
{%- if not loop.last %},{{ '\n' }}{% endif %}

{%- endfor -%}
{%- endmacro %}

0 comments on commit 34a7773

Please sign in to comment.