You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/08/11 11:06:25 UTC

[GitHub] [spark] cloud-fan commented on a change in pull request #33707: [SPARK-36479][SQL][TEST] Improve datetime test coverage in SQL files

cloud-fan commented on a change in pull request #33707:
URL: https://github.com/apache/spark/pull/33707#discussion_r686726783



##########
File path: sql/core/src/test/resources/sql-tests/inputs/interval.sql
##########
@@ -145,75 +145,20 @@ SELECT INTERVAL '178956970-8' YEAR TO MONTH;
 SELECT INTERVAL '-178956970-8' YEAR TO MONTH;
 SELECT INTERVAL -'178956970-8' YEAR TO MONTH;
 
--- Interval year-month arithmetic
-
-create temporary view interval_arithmetic as
-  select CAST(dateval AS date), CAST(tsval AS timestamp), dateval as strval from values
-    ('2012-01-01', '2012-01-01')
-    as interval_arithmetic(dateval, tsval);
-
-select
-  dateval,
-  dateval - interval '2-2' year to month,
-  dateval - interval '-2-2' year to month,
-  dateval + interval '2-2' year to month,
-  dateval + interval '-2-2' year to month,
-  - interval '2-2' year to month + dateval,
-  interval '2-2' year to month + dateval
-from interval_arithmetic;

Review comment:
       moved to `date.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.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org