Skip to content

Commit

Permalink
remove overriding list_relations_without_caching and rewrite the sql …
Browse files Browse the repository at this point in the history
…query
  • Loading branch information
jiezhen-chen committed Jul 12, 2023
1 parent 4e3ed0d commit 781dfe3
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions dbt/include/redshift/macros/adapters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -223,17 +223,6 @@
{{ return(sql_convert_columns_in_relation(table)) }}
{% endmacro %}



{% macro redshift__information_schema_name(database) -%}
{{ return(postgres__information_schema_name(database)) }}
{%- endmacro %}


{% macro redshift__list_schemas(database) -%}
{{ return(postgres__list_schemas(database)) }}
{%- endmacro %}

{% macro redshift__list_relations_without_caching(schema_relation) %}

{% call statement('list_relations_without_caching', fetch_result=True) -%}
Expand Down Expand Up @@ -261,6 +250,15 @@
{{ return(load_result('list_relations_without_caching').table) }}
{% endmacro %}

{% macro redshift__information_schema_name(database) -%}
{{ return(postgres__information_schema_name(database)) }}
{%- endmacro %}


{% macro redshift__list_schemas(database) -%}
{{ return(postgres__list_schemas(database)) }}
{%- endmacro %}

{% macro redshift__check_schema_exists(information_schema, schema) -%}
{{ return(postgres__check_schema_exists(information_schema, schema)) }}
{%- endmacro %}
Expand Down

0 comments on commit 781dfe3

Please sign in to comment.