From 984a864faddd3b92f024bff3d5b33a37409e35cf Mon Sep 17 00:00:00 2001 From: Ning Sun Date: Fri, 13 Sep 2024 16:15:55 -0700 Subject: [PATCH] fix: query parameter error on simple query mode --- src/metabase/driver/greptimedb.clj | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/metabase/driver/greptimedb.clj b/src/metabase/driver/greptimedb.clj index c2595a1..94ebc3f 100644 --- a/src/metabase/driver/greptimedb.clj +++ b/src/metabase/driver/greptimedb.clj @@ -68,7 +68,8 @@ (sql.helpers/where [:in :table_schema schemas]) (seq table-names) - (sql.helpers/where [:in :table_name table-names])))) + (sql.helpers/where [:in :table_name table-names])) + {:inline true})) (defmethod driver/describe-database :greptimedb [driver database] @@ -88,7 +89,8 @@ :from [:information_schema.columns] :where [:and [:= :table_name table-name] - [:= :table_schema schema]]})) + [:= :table_schema schema]]} + {:inline true})) (defmethod driver/describe-table :greptimedb [driver database table] @@ -135,7 +137,7 @@ (sql-jdbc.common/handle-additional-options details))) (defmethod sql-jdbc.sync/excluded-schemas :greptimedb [_driver] - #{"greptime_private" "information_schema" "pg_catalog"}) + ["greptime_private" "information_schema" "pg_catalog"]) ;;; ------------------------------------------------- sql-jdbc.sync --------------------------------------------------