gengliangwang commented on a change in pull request #33666:
URL: https://github.com/apache/spark/pull/33666#discussion_r684322378
##########
File path: sql/core/src/test/resources/sql-tests/inputs/timestamp.sql
##########
@@ -102,6 +102,13 @@ select timestamp'2011-11-11 11:11:11' - interval '2'
second;
select '2011-11-11 11:11:11' - interval '2' second;
select '1' - interval '2' second;
select 1 - interval '2' second;
+select '2011-11-11 11:11:11' - date'2011-11-11';
Review comment:
> how about string - date/timestamp?
I have added a new test case. But it seems that `string - date` will be
`cast(string as date) - date`. Should we move it to date.sql or just leave it
here?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]