Skip to content

Commit

Permalink
Drop trino__load_csv_rows macro
Browse files Browse the repository at this point in the history
dbt 0.21.0 introduced changes which dropped basic_load_csv_rows dbt-labs/dbt-core#3623. Now it's able to use the default macro default__load_csv_rows
  • Loading branch information
hovaesco committed Oct 7, 2021
1 parent 0c84dbf commit ef05a4e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions dbt/include/trino/macros/adapters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
{%- endmacro %}


{# On Trino, 'cascade' isn't supported so we have to manually cascade. #}
{# On Trino, 'cascade' is not supported so we have to manually cascade. #}
{% macro trino__drop_schema(relation) -%}
{% for row in list_relations_without_caching(relation) %}
{% set rel_db = row[0] %}
Expand All @@ -151,11 +151,6 @@
{% endmacro %}


{% macro trino__load_csv_rows(model, agate_table) %}
{{ return(basic_load_csv_rows(model, 1000, agate_table)) }}
{% endmacro %}


{% macro trino__list_schemas(database) -%}
{% call statement('list_schemas', fetch_result=True, auto_begin=False) %}
select distinct schema_name
Expand Down

0 comments on commit ef05a4e

Please sign in to comment.