diff --git a/core/dbt/adapters/base/relation.py b/core/dbt/adapters/base/relation.py index d6bef95c57c..af3a41df63d 100644 --- a/core/dbt/adapters/base/relation.py +++ b/core/dbt/adapters/base/relation.py @@ -11,12 +11,14 @@ class BaseRelation(APIObject): View = "view" CTE = "cte" MaterializedView = "materializedview" + ExternalTable = "externaltable" RelationTypes = [ Table, View, CTE, - MaterializedView + MaterializedView, + ExternalTable ] DEFAULTS = { diff --git a/plugins/snowflake/dbt/include/snowflake/macros/adapters.sql b/plugins/snowflake/dbt/include/snowflake/macros/adapters.sql index 63dcb21f0af..4bd3333a7c8 100644 --- a/plugins/snowflake/dbt/include/snowflake/macros/adapters.sql +++ b/plugins/snowflake/dbt/include/snowflake/macros/adapters.sql @@ -55,6 +55,7 @@ case when table_type = 'BASE TABLE' then 'table' when table_type = 'VIEW' then 'view' when table_type = 'MATERIALIZED VIEW' then 'materializedview' + when table_type = 'EXTERNAL TABLE' then 'externaltable' else table_type end as table_type from {{ information_schema }}.tables