MaxGekk commented on a change in pull request #33729:
URL: https://github.com/apache/spark/pull/33729#discussion_r688255881



##########
File path: sql/core/src/test/resources/sql-tests/results/ansi/interval.sql.out
##########
@@ -117,6 +117,75 @@ struct<(INTERVAL '02' SECOND * NULL):interval day to 
second>
 NULL
 
 
+-- !query
+select interval '2 year' / 0
+-- !query schema
+struct<>
+-- !query output
+java.lang.ArithmeticException
+/ by zero
+
+
+-- !query
+select interval '2 year' / null
+-- !query schema
+struct<(INTERVAL '2' YEAR / NULL):interval year to month>

Review comment:
       I wonder why the type is `interval year to month` but not `interval year`




-- 
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]

Reply via email to