Skip to content

Commit

Permalink
Merge pull request #53 from dacort/feature/views
Browse files Browse the repository at this point in the history
Add support for views
  • Loading branch information
dacort authored Aug 2, 2020
2 parents e40c453 + a6c819f commit f8efdff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metabase/driver/athena.clj
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
(defn- get-tables [^DatabaseMetaData metadata, ^String schema-or-nil, ^String db-name-or-nil]
;; tablePattern "%" = match all tables
(with-open [rs (.getTables metadata db-name-or-nil schema-or-nil "%"
(into-array String ["EXTERNAL_TABLE", "EXTERNAL TABLE" "TABLE", "VIEW", "FOREIGN TABLE", "MATERIALIZED VIEW"]))]
(into-array String ["EXTERNAL_TABLE", "EXTERNAL TABLE" "TABLE", "VIEW", "VIRTUAL_VIEW", "FOREIGN TABLE", "MATERIALIZED VIEW"]))]
(vec (jdbc/metadata-result rs))))

;; Required because we're calling our own custom private get-tables method to support Athena
Expand Down

0 comments on commit f8efdff

Please sign in to comment.