waitingkuo commented on code in PR #5914:
URL: https://github.com/apache/arrow-datafusion/pull/5914#discussion_r1160699934
##########
datafusion/core/tests/sqllogictests/test_files/arrow_typeof.slt:
##########
@@ -303,3 +307,25 @@ select arrow_cast(interval '30 minutes',
'Duration(Second)');
query error DataFusion error: Error during planning: Cannot automatically
convert Utf8 to Duration\(Second\)
select arrow_cast('30 minutes', 'Duration(Second)');
+
+
+## Timestamptz
+
+query P
+select arrow_cast(timestamp '2000-01-01T00:00:00', 'Timestamp(Nanosecond,
Some( "+00:00" ))');
+----
+2000-01-01T00:00:00Z
+
+query P
+select arrow_cast(timestamp '2000-01-01T00:00:00', 'Timestamp(Nanosecond,
Some( "+08:00" ))');
+----
+2000-01-01T08:00:00+08:00
+
+# once https://github.com/apache/arrow-rs/issues/1936 fixed, please update
this query
+query P
+select arrow_cast(timestamp '2000-01-01T00:00:00Z', 'Timestamp(Nanosecond,
Some( "+08:00" ))');
+----
+2000-01-01T08:00:00+08:00
Review Comment:
@tustvold thank you
added this case to notify users once the kernel casting issue fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]