Skip to content

Commit

Permalink
Merge pull request #3 from GreptimeTeam/fix/statement-error
Browse files Browse the repository at this point in the history
fix: query parameter error on simple query mode
  • Loading branch information
sunng87 authored Sep 13, 2024
2 parents 97c658e + 984a864 commit 7178bdd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/metabase/driver/greptimedb.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
Expand Down Expand Up @@ -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 --------------------------------------------------

Expand Down

0 comments on commit 7178bdd

Please sign in to comment.