cloud-fan commented on a change in pull request #26337: [SPARK-29679][SQL] Make interval type comparable and orderable URL: https://github.com/apache/spark/pull/26337#discussion_r344064290
########## File path: sql/core/src/test/resources/sql-tests/inputs/interval.sql ########## @@ -0,0 +1,43 @@ +-- test for intervals + +-- greater than or equal +select interval '1 day' > interval '23 hour'; +select interval '-1 day' >= interval '-23 hour'; +select interval '-1 day' > null; +select null > interval '-1 day'; + +-- less than or equal +select interval '1 minutes' < interval '1 hour'; +select interval '-1 day' >= interval '-23 hour'; Review comment: nit: `<=` to match the comment ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
