You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by al...@apache.org on 2023/03/29 18:24:43 UTC

[arrow-datafusion] branch main updated: minor: add timestampstz utf8 conversion test (#5777)

This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new 8139ed40d minor: add timestampstz utf8 conversion test (#5777)
8139ed40d is described below

commit 8139ed40d06d77498217438ff52fe73a4ea16f61
Author: comphead <co...@users.noreply.github.com>
AuthorDate: Wed Mar 29 11:24:36 2023 -0700

    minor: add timestampstz utf8 conversion test (#5777)
---
 datafusion/core/tests/sqllogictests/test_files/timestamps.slt | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/datafusion/core/tests/sqllogictests/test_files/timestamps.slt b/datafusion/core/tests/sqllogictests/test_files/timestamps.slt
index 5fbd290ea..c533951e4 100644
--- a/datafusion/core/tests/sqllogictests/test_files/timestamps.slt
+++ b/datafusion/core/tests/sqllogictests/test_files/timestamps.slt
@@ -260,3 +260,14 @@ query P
 SELECT INTERVAL '8' MONTH + '2000-01-01T00:00:00'::timestamp;
 ----
 2000-09-01T00:00:00
+
+# timestamptz to utf8 conversion
+query BBBB
+SELECT 
+  '2000-01-01T00:00:00'::timestamp::timestamptz = '2000-01-01T00:00:00',
+  '2000-01-01T00:00:00'::timestamp::timestamptz != '2000-01-01T00:00:00',
+  '2000-01-01T00:00:00'::timestamp::timestamptz >= '2000-01-01T00:00:00',
+  '2000-01-01T00:00:00'::timestamp::timestamptz <= '2000-01-01T00:00:00'
+;
+----
+true false true true