databricks / dbt-databricks

A dbt adapter for Databricks.
https://databricks.com
Apache License 2.0
195 stars 104 forks source link

Attempt changing over to system for metadata gathering #692

Closed benc-db closed 3 weeks ago

benc-db commented 1 month ago

Resolves #691

Description

Today, information_schema does not work as expected when the name of a catalog is changed, as the catalog-specific views are written at create time and not updated. While I'm pursuing that fix internally, switching over to system for all information_schema queries will fix this. Unclear yet whether this will have any performance or governance implications (testing currently), though since all of the catalog-specific views reference system under the hood, I wouldn't expect any.

Checklist