dbt-labs / spark-utils

Utility functions for dbt projects running on Spark
https://hub.getdbt.com/fishtown-analytics/spark_utils/latest/
Apache License 2.0
30 stars 15 forks source link

Some dbt_utils.get_relations_by_* macros #10

Closed jtcohen6 closed 3 years ago

jtcohen6 commented 3 years ago

Yes:

Both are effectively:

show table extended in {{ schema_pattern }} like '{{ table_pattern }}' / '{{ table_prefix }}*'

It needs to be extended in order to derive relation type (view or table).

No:

This is enough to get us Spark/Databricks compatibility for the codegen package, which uses dbt_utils.get_relations_by_prefix here.