Skip to content

get_tables_by_prefix_sql does not pass on database parameter #157

Closed
@clausherther

Description

@clausherther

Looks like the database parameter does not get passed on to the adapter macro here

{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}
    {{ adapter_macro('dbt_utils.get_tables_by_prefix_sql', schema, prefix, exclude) }}
{% endmacro %}

Should be:

{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}
    {{ adapter_macro('dbt_utils.get_tables_by_prefix_sql', schema, prefix, exclude, database) }}
{% endmacro %}

No?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions