Skip to content

Commit

Permalink
Use get_relations_by_pattern macro
Browse files Browse the repository at this point in the history
  • Loading branch information
clrcrl committed Jun 1, 2021
1 parent 54b207e commit d73bfa3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions macros/generate_source.sql
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% macro get_tables_in_schema(schema_name,database_name=target.database) %}
{% macro get_tables_in_schema(schema_name, database_name=target.database) %}

{% set tables=dbt_utils.get_relations_by_prefix(
schema=schema_name,
prefix='',
{% set tables=dbt_utils.get_relations_by_pattern(
table_pattern='%'
schema_pattern=schema_name,
database=database_name
)
%}
Expand Down

0 comments on commit d73bfa3

Please sign in to comment.