linhongliu-db commented on a change in pull request #32959:
URL: https://github.com/apache/spark/pull/32959#discussion_r662162169
##########
File path: sql/core/src/test/resources/sql-tests/results/ansi/datetime.sql.out
##########
@@ -662,10 +661,9 @@ struct<date_sub(DATE '2001-10-01', 7):date>
-- !query
select date '2001-10-01' - '7'
-- !query schema
-struct<>
+struct<(DATE '2001-10-01' - 7):interval day>
-- !query output
-java.time.DateTimeException
-Cannot cast 7 to DateType.
+728567 00:00:00.000000000
Review comment:
cc @cloud-fan, this is an existing mismatch between ANSI and non-ANSI
mode. For non-ANSI mode, this query will throw exception
--
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]