File tree Expand file tree Collapse file tree 2 files changed +27
-17
lines changed
sql/core/src/test/resources/sql-tests Expand file tree Collapse file tree 2 files changed +27
-17
lines changed Original file line number Diff line number Diff line change @@ -201,14 +201,14 @@ SELECT date '5874898-01-01'; -- out of range
201201
202202-- RESET datestyle;
203203
204- -- [SPARK-27898] Support 4 date operators(date + integer, integer + date, date - integer and date - date)
205204--
206205-- Simple math
207206-- Leave most of it for the horology tests
208207--
209208
210- -- SELECT f1 - date '2000-01-01' AS " Days From 2K" FROM DATE_TBL;
209+ SELECT f1 - date ' 2000-01-01' AS ` Days From 2K` FROM DATE_TBL;
211210
211+ -- [SPARK-28141] Date type can not accept special values
212212-- SELECT f1 - date 'epoch' AS "Days From Epoch" FROM DATE_TBL;
213213
214214-- SELECT date 'yesterday' - date 'today' AS "One day";
Original file line number Diff line number Diff line change 11-- Automatically generated by SQLQueryTestSuite
2- -- Number of queries: 47
2+ -- Number of queries: 48
33
44
55-- !query 0
@@ -414,20 +414,30 @@ SELECT date '5874898-01-01'
414414
415415
416416
417-
418-
419-
420-
421-
422-
423-
424-
425-
426-
427-
428-
429- DROP TABLE DATE_TBL
417+ SELECT f1 - date '2000-01-01' AS `Days From 2K` FROM DATE_TBL
430418-- !query 46 schema
431- struct<>
419+ struct<Days From 2K:int >
432420-- !query 46 output
421+ -1035
422+ -1036
423+ -1037
424+ -1400
425+ -1401
426+ -1402
427+ -1403
428+ -15542
429+ -15607
430+ 13977
431+ 14343
432+ 14710
433+ 91
434+ 92
435+ 93
436+
437+
438+ -- !query 47
439+ DROP TABLE DATE_TBL
440+ -- !query 47 schema
441+ struct<>
442+ -- !query 47 output
433443
You can’t perform that action at this time.
0 commit comments