Omega359 commented on code in PR #12400:
URL: https://github.com/apache/datafusion/pull/12400#discussion_r1754796330


##########
datafusion/sqllogictest/test_files/array.slt:
##########
@@ -5866,50 +5902,124 @@ select generate_series(5),
 ----
 [0, 1, 2, 3, 4, 5] [2, 3, 4, 5] [2, 5, 8] [1, 2, 3, 4, 5] [5, 4, 3, 2, 1] [10, 
7, 4] [1992-09-01, 1992-10-01, 1992-11-01, 1992-12-01, 1993-01-01, 1993-02-01, 
1993-03-01] [1993-02-01, 1993-01-31, 1993-01-30, 1993-01-29, 1993-01-28, 
1993-01-27, 1993-01-26, 1993-01-25, 1993-01-24, 1993-01-23, 1993-01-22, 
1993-01-21, 1993-01-20, 1993-01-19, 1993-01-18, 1993-01-17, 1993-01-16, 
1993-01-15, 1993-01-14, 1993-01-13, 1993-01-12, 1993-01-11, 1993-01-10, 
1993-01-09, 1993-01-08, 1993-01-07, 1993-01-06, 1993-01-05, 1993-01-04, 
1993-01-03, 1993-01-02, 1993-01-01] [1989-04-01, 1990-04-01, 1991-04-01, 
1992-04-01]
 
-query error DataFusion error: Execution error: Cannot generate date range less 
than 1 day\.
-select generate_series('2021-01-01'::timestamp, '2021-01-02'::timestamp, 
INTERVAL '1' HOUR);
+query ?
+select generate_series('2021-01-01'::timestamp, 
'2021-01-01T15:00:00'::timestamp, INTERVAL '1' HOUR);
+----
+[2021-01-01T00:00:00, 2021-01-01T01:00:00, 2021-01-01T02:00:00, 
2021-01-01T03:00:00, 2021-01-01T04:00:00, 2021-01-01T05:00:00, 
2021-01-01T06:00:00, 2021-01-01T07:00:00, 2021-01-01T08:00:00, 
2021-01-01T09:00:00, 2021-01-01T10:00:00, 2021-01-01T11:00:00, 
2021-01-01T12:00:00, 2021-01-01T13:00:00, 2021-01-01T14:00:00, 
2021-01-01T15:00:00]
+
+query ?
+select generate_series('2021-01-01T00:00:00EST'::timestamp, 
'2021-01-01T15:00:00-12:00'::timestamp, INTERVAL '1' HOUR);

Review Comment:
   There is a test for -5.5sec (in nanoseconds) somewhere in that file.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to