Skip to content
Snippets Groups Projects
Unverified Commit 89e2bd0b authored by metamben's avatar metamben Committed by GitHub
Browse files

Accept US/Pacific timezone in Athena timestamp with timezone test (#31824)

parent ad0c5d59
No related branches found
No related tags found
No related merge requests found
......@@ -81,8 +81,12 @@
query (-> (mt/native-query {:query sql, :params args})
(assoc-in [:middleware :format-rows?] false))]
(mt/with-native-query-testing-context query
(is (= [#t "2022-11-16T04:21:00.000-08:00[America/Los_Angeles]" #t "05:03"]
(mt/first-row (qp/process-query query)))))))))
(let [[ts t] (mt/first-row (qp/process-query query))]
(is (#{#t "2022-11-16T04:21:00.000-08:00[America/Los_Angeles]"
#t "2022-11-16T04:21:00.000-08:00[US/Pacific]"}
ts))
(is (= #t "05:03"
t))))))))
(deftest set-time-and-timestamp-with-time-zone-test
(mt/test-driver :athena
......
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