Skip to content

Commit 64d2de2

Browse files
authored
Merge pull request #6 from gizmodata/main
Convert "SHOW TABLES" to instead query information_schema.tables...
2 parents 37595c7 + e3278b2 commit 64d2de2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/metabase/driver/arrow_flight_sql.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,13 @@
163163
;; Custom Schema Sync Implementations
164164
;; ----------------------------------------------------------------
165165

166-
;; List tables by executing the "SHOW TABLES" command.
166+
;; List tables by querying information_schema.tables.
167167
(defmethod driver/describe-database :arrow-flight-sql
168168
[driver database]
169169
(let [spec (sql-jdbc.conn/connection-details->spec :arrow-flight-sql (:details database))]
170170
(with-open [conn (jdbc/get-connection spec)]
171171
(let [rows (jdbc/query {:connection conn}
172-
["SHOW TABLES"]
172+
["SELECT table_name, table_schema FROM information_schema.tables"]
173173
{:identifiers str/lower-case})
174174
formatted (->> rows
175175
(filter #(not= (str/lower-case (:table_schema %)) "information_schema"))

0 commit comments

Comments
 (0)