cloud-fan commented on a change in pull request #26418: [SPARK-29783][SQL] Support SQL Standard/ISO_8601 output style for interval type URL: https://github.com/apache/spark/pull/26418#discussion_r347085247
########## File path: sql/core/src/test/resources/sql-tests/inputs/interval.sql ########## @@ -88,3 +88,46 @@ select justify_interval(interval '1 month -59 day 25 hour'); select justify_days(interval '1 month 59 day -25 hour'); select justify_hours(interval '1 month 59 day -25 hour'); select justify_interval(interval '1 month 59 day -25 hour'); + +-- interval output style Review comment: we can create a `interval-display.sql` test file to put these test cases, and then a `interval-display-sql-standard.sql` which does ``` --SET spark.sql.intervalOutputStyle = SQL_STANDARD; --import interval-display.sql ``` also a `interval-display-iso_8601.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]
