cloud-fan commented on a change in pull request #33724:
URL: https://github.com/apache/spark/pull/33724#discussion_r687715404
##########
File path: sql/core/src/test/resources/sql-tests/results/ansi/date.sql.out
##########
@@ -321,9 +321,10 @@ cannot resolve 'date_add(CAST('2011-11-11' AS DATE),
10.0D)' due to data type mi
-- !query
select date_add('2011-11-11', '1')
-- !query schema
-struct<date_add(2011-11-11, 1):date>
+struct<>
-- !query output
-2011-11-12
+org.apache.spark.sql.AnalysisException
+cannot resolve 'date_add(CAST('2011-11-11' AS DATE), '1')' due to data type
mismatch: argument 2 requires (int or smallint or tinyint) type, however, ''1''
is of string type.; line 1 pos 7
Review comment:
shouldn't we support it in the ANSI mode?
--
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]