Skip to content

Commit

Permalink
fix list_relations_without_caching
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-rogers-dbt committed Jan 4, 2024
1 parent 0995ec9 commit 91b43ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dbt/adapters/snowflake/relation.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ def get_relation_type(cls) -> Type[SnowflakeRelationType]:

@classmethod
def dynamic_table_config_changeset(
cls, relation_results: RelationResults, runtime_config: RelationConfig
cls, relation_results: RelationResults, relation_config: RelationConfig
) -> Optional[SnowflakeDynamicTableConfigChangeset]:
existing_dynamic_table = SnowflakeDynamicTableConfig.from_relation_results(
relation_results
)
new_dynamic_table = SnowflakeDynamicTableConfig.from_relation_config(runtime_config)
new_dynamic_table = SnowflakeDynamicTableConfig.from_relation_config(relation_config)

config_change_collection = SnowflakeDynamicTableConfigChangeset()

Expand Down
2 changes: 1 addition & 1 deletion dbt/include/snowflake/macros/adapters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
{%- set max_total_results = max_results_per_iter * max_iter -%}

{%- set sql -%}
show terse objects in {{ schema_relation }} limit {{ max_results_per_iter }}
show terse objects in {{ schema_relation.database }}.{{ schema_relation.schema }} limit {{ max_results_per_iter }}
{%- endset -%}

{%- set result = run_query(sql) -%}
Expand Down

0 comments on commit 91b43ca

Please sign in to comment.