MaxGekk commented on a change in pull request #26285: [SPARK-29623][SQL] do not allow multiple unit TO unit statements in interval literal syntax URL: https://github.com/apache/spark/pull/26285#discussion_r340146313
########## File path: sql/core/src/test/resources/sql-tests/inputs/literals.sql ########## @@ -125,3 +125,8 @@ select map(1, interval 1 day, 2, interval 3 week); -- typed interval expression select interval 'interval 3 year 1 hour'; select interval '3 year 1 hour'; + +-- malformed interval literal +select interval '10-9' year to month '2-1' year to month; +select interval 1 year '2-1' year to month; +select interval '10-9' year to month '1' year; Review comment: Can you add a test for at least 2 different unit to unit? ---------------------------------------------------------------- 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]
