From 55a5c76c13f9d49c7644df00d38d273d7529f7e5 Mon Sep 17 00:00:00 2001 From: Matt Topol Date: Mon, 14 Oct 2024 16:35:19 -0400 Subject: [PATCH] trim whitespace --- .../snowflake/queries/get_objects_dbschemas.sql | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/go/adbc/driver/snowflake/queries/get_objects_dbschemas.sql b/go/adbc/driver/snowflake/queries/get_objects_dbschemas.sql index 627d11c321..bc454866af 100644 --- a/go/adbc/driver/snowflake/queries/get_objects_dbschemas.sql +++ b/go/adbc/driver/snowflake/queries/get_objects_dbschemas.sql @@ -16,17 +16,17 @@ -- under the License. WITH db_schemas AS ( - SELECT + SELECT "database_name" as "catalog_name", "name" as "schema_name" FROM table(RESULT_SCAN(:SHOW_SCHEMA_QUERY_ID)) WHERE "database_name" ILIKE :CATALOG ), db_info AS ( - SELECT "name" AS "database_name" + SELECT "name" AS "database_name" FROM table(RESULT_SCAN(:SHOW_DB_QUERY_ID)) WHERE "name" ILIKE :CATALOG ) -SELECT +SELECT { 'catalog_name': "database_name", 'catalog_db_schemas': ARRAY_AGG({ @@ -34,9 +34,9 @@ SELECT 'db_schema_tables': null }) } get_objects -FROM - db_info -LEFT JOIN db_schemas +FROM + db_info +LEFT JOIN db_schemas ON "database_name" = "catalog_name" WHERE "database_name" ILIKE :CATALOG GROUP BY "database_name";