Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add macro to get columns #516

Merged
merged 13 commits into from
Mar 28, 2022
Prev Previous commit
Next Next commit
swap adapter for dbt_utils
Co-authored-by: Joel Labes <[email protected]>
  • Loading branch information
patkearns10 and joellabes authored Mar 23, 2022
commit 92986801731fa3358829067db798d145a5d769e4
2 changes: 1 addition & 1 deletion macros/sql/star.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{{ return('') }}
{% endif %}

{%- for col in adapter.get_columns(from, except) %}
{%- for col in dbt_utils.get_columns(from, except) %}

{%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}{{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' -%} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}
{%- if not loop.last %},{{ '\n ' }}{% endif %}
Expand Down