Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for get_relations_by* / get_tables_by* using information_schema in Unity Catalog #28

Open
tfayyaz opened this issue Jul 19, 2022 · 0 comments

Comments

@tfayyaz
Copy link

tfayyaz commented Jul 19, 2022

Databricks and Unity Catalog now supports information_schema https://docs.databricks.com/sql/language-manual/sql-ref-information-schema.html and so it should now be possible to support some of the missing shims listed in the readme and as one of the tasks in #7:

The missing shims are:

  • dbt_utils.get_relations_by_prefix_sql
  • dbt_utils.get_tables_by_pattern_sql
  • dbt_utils.get_tables_by_prefix
  • dbt_utils.get_tables_by_pattern

I will be willing to try and contribute these but will need guidance on how to define the logic that only allows these to be compatible if you are using >=dbt-databricks==1.1.1 and have Unity Catalog enabled.

Thanks
Tahir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant