diff --git a/macros/sql/get_table_types_sql.sql b/macros/sql/get_table_types_sql.sql index e3f86884..91573779 100644 --- a/macros/sql/get_table_types_sql.sql +++ b/macros/sql/get_table_types_sql.sql @@ -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 %} \ No newline at end of file