You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- Cast string to timestamp_ntz: valid formats should parse, invalid should be null
30
+
query
31
+
SELECT s, cast(s AS timestamp_ntz) FROM test_cast_ts_ntz
32
+
33
+
-- Verify that timestamp_ntz values are not affected by session timezone
34
+
query
35
+
SELECT s, cast(s AS timestamp_ntz) FROM test_cast_ts_ntz WHERE s ='2020-01-01T12:34:56.123456'
36
+
37
+
-- Compare timestamp_ntz vs timestamp (with timezone) to show they differ
38
+
query
39
+
SELECT s, cast(s AS timestamp_ntz) as ts_ntz, cast(s AStimestamp) as ts FROM test_cast_ts_ntz WHERE s IS NOT NULLAND s !='not_a_timestamp'AND s !='2020-01-01T12:34:56+05:00'
0 commit comments