dbt-databricks icon indicating copy to clipboard operation
dbt-databricks copied to clipboard

Missing "external" relation type

Open izeigerman opened this issue 1 year ago • 1 comments
trafficstars

Describe the bug

The Databricks adapter is missing the external relation type which is a part of the dbt adapter contract: https://github.com/dbt-labs/dbt-adapters/blob/main/dbt/adapters/contracts/relation.py#L23. This type is usually assigned to relations associated with sources.

Steps To Reproduce

Currently the issue surfaces when trying to load the dbt project with SQLMesh (https://github.com/tobikodata/sqlmesh/) with the adapter version > 1.8.0. On version 1.8.0 and below it works as expected. I imagine it may impact other areas as well since the dbt relation type clearly expects this type to exist: https://github.com/dbt-labs/dbt-adapters/blob/main/dbt/adapters/base/relation.py#L367-L368

izeigerman avatar Jul 03 '24 16:07 izeigerman

For reference here's the external relation type in the snowflake adapter: https://github.com/dbt-labs/dbt-snowflake/blob/main/dbt/adapters/snowflake/relation_configs/policies.py#L11

izeigerman avatar Jul 03 '24 17:07 izeigerman