Skip to content

Commit

Permalink
Clean up star macro (#193)
Browse files Browse the repository at this point in the history
* Remove whitespace

* Update jinja
  • Loading branch information
invinceyble authored Feb 25, 2020
1 parent b1a156c commit 2426cd5
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
Expand Up @@ -12,15 +12,15 @@
{%- for col in cols -%}

{%- if col.column not in except -%}
{% set _ = include_cols.append(col.column) %}
{% do include_cols.append(col.column) %}

{%- endif %}
{%- endfor %}

{%- for col in include_cols %}

{%- if relation_alias %}{{ relation_alias }}.{% else %}{% endif %}{{ dbt_utils.identifier(col)|trim }}
{%- if not loop.last %},{{ '\n' }}{% 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 2426cd5

Please sign in to comment.