Skip to content
Snippets Groups Projects
Unverified Commit 51142efc authored by Cal Herries's avatar Cal Herries Committed by GitHub
Browse files

Fix snowflake's delete-old-datasets! for tests (#41249)

parent b1e83541
No related branches found
No related tags found
No related merge requests found
......@@ -98,9 +98,7 @@
(loop [acc []]
(if-not (.next rset)
acc
;; for whatever dumb reason the Snowflake JDBC driver always returns these as uppercase despite us making
;; them all lower-case
(let [catalog (u/lower-case-en (.getString rset "TABLE_CAT"))
(let [catalog (.getString rset "TABLE_CAT")
acc (cond-> acc
(sql.tu.unique-prefix/old-dataset-name? catalog) (conj catalog))]
(recur acc)))))))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment