Skip to content

Commit

Permalink
Change from quotes to backticks for BQ (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
joellabes authored Apr 8, 2022
1 parent 37199d3 commit 3329933
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions macros/sql/get_table_types_sql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,12 @@
else lower(table_type)
end as "table_type"
{% endmacro %}

{% macro bigquery__get_table_types_sql() %}
case table_type
when 'BASE TABLE' then 'table'
when 'EXTERNAL TABLE' then 'external'
when 'MATERIALIZED VIEW' then 'materializedview'
else lower(table_type)
end as `table_type`
{% endmacro %}

0 comments on commit 3329933

Please sign in to comment.