cloud-fan commented on a change in pull request #26515: [SPARK-29889][SQL][test] unify the interval tests URL: https://github.com/apache/spark/pull/26515#discussion_r346187384
########## File path: sql/core/src/test/resources/sql-tests/inputs/ansi/interval.sql ########## @@ -1,187 +1,15 @@ -select - '1' second, - 2 seconds, - '1' minute, - 2 minutes, - '1' hour, - 2 hours, - '1' day, - 2 days, - '1' month, - 2 months, - '1' year, - 2 years; - -select - interval '10-11' year to month, - interval '10' year, - interval '11' month; - -select - '10-11' year to month, - '10' year, - '11' month; - -select - interval '10 9:8:7.987654321' day to second, - interval '10' day, - interval '11' hour, - interval '12' minute, - interval '13' second, - interval '13.123456789' second; - -select - '10 9:8:7.987654321' day to second, - '10' day, - '11' hour, - '12' minute, - '13' second, - '13.123456789' second; - -select map(1, interval 1 day, 2, interval 3 week); - -select map(1, 1 day, 2, 3 week); - --- Interval year-month arithmetic Review comment: tests below are moved to `interval.sql` ---------------------------------------------------------------- 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]
