From 2d9b5c9b17b95c00d01aada58538a9b8e29037fc Mon Sep 17 00:00:00 2001 From: Piotr Findeisen Date: Fri, 29 Sep 2023 21:15:19 +0200 Subject: [PATCH] Remove redundant `DISTINCT` from query `information_schema.schemata` has no duplicates. --- dbt/include/trino/macros/adapters.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt/include/trino/macros/adapters.sql b/dbt/include/trino/macros/adapters.sql index 3f487123..24bf37c8 100644 --- a/dbt/include/trino/macros/adapters.sql +++ b/dbt/include/trino/macros/adapters.sql @@ -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) }}