Skip to content

Commit

Permalink
Remove redundant DISTINCT from query
Browse files Browse the repository at this point in the history
`information_schema.schemata` has no duplicates.
  • Loading branch information
findepi committed Sep 29, 2023
1 parent 6d4cc2a commit 2d9b5c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbt/include/trino/macros/adapters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
{% macro trino__list_schemas(database) -%}
{% call statement('list_schemas', fetch_result=True, auto_begin=False) %}
select distinct schema_name
select schema_name
from {{ information_schema_name(database) }}.schemata
{% endcall %}
{{ return(load_result('list_schemas').table) }}
Expand Down

0 comments on commit 2d9b5c9

Please sign in to comment.