You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2023/05/01 14:45:52 UTC

[GitHub] [arrow-datafusion] alamb commented on a diff in pull request #6177: fix: type coercion ignore Date - Interval

alamb commented on code in PR #6177:
URL: https://github.com/apache/arrow-datafusion/pull/6177#discussion_r1181624815


##########
datafusion/core/tests/sqllogictests/test_files/type_coercion.slt:
##########
@@ -29,3 +29,21 @@ query B
 select 's' is not distinct from arrow_cast('s', 'LargeUtf8');
 ----
 true
+
+# date - interval
+query D
+select  '2023-05-01'::date - interval '1 month';
+----
+2023-04-01
+
+# date - interval

Review Comment:
   this seems identical to the test above it (maybe it was supposed to be `date + interval`?)



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org