cloud-fan commented on a change in pull request #33737:
URL: https://github.com/apache/spark/pull/33737#discussion_r689285715
##########
File path: sql/core/src/test/resources/sql-tests/results/interval.sql.out
##########
@@ -2175,6 +2289,54 @@ org.apache.spark.sql.AnalysisException
cannot resolve '(INTERVAL '1' MONTH > INTERVAL '20' DAY)' due to data type
mismatch: differing types in '(INTERVAL '1' MONTH > INTERVAL '20' DAY)'
(interval month and interval day).; line 1 pos 7
+-- !query
+SELECT INTERVAL '1' DAY < '1'
Review comment:
shall we forbid this in non-ANSI mode as well? I tried this in Spark 3.1
and it fails analysis. I don't think this makes sense in non-ANSI mode for the
same reason, and we shouldn't release this in 3.2
--
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]