diff --git a/macros/sql/get_table_types_sql.sql b/macros/sql/get_table_types_sql.sql index 8a88c45a..796ff59a 100644 --- a/macros/sql/get_table_types_sql.sql +++ b/macros/sql/get_table_types_sql.sql @@ -30,3 +30,13 @@ else lower(table_type) end as {{ adapter.quote('table_type') }} {% endmacro %} + +{% macro bigquery__get_table_types_sql() %} + case table_type + when 'BASE TABLE' then 'table' + when 'CLONE' then 'table' + when 'EXTERNAL TABLE' then 'external' + when 'MATERIALIZED VIEW' then 'materializedview' + else lower(table_type) + end as {{ adapter.quote('table_type') }} +{% endmacro %}