Skip to content

Commit 2e9b72e

Browse files
Subham SinghalSubham Singhal
authored andcommitted
Fix UT
1 parent 11296c4 commit 2e9b72e

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

datafusion/sqllogictest/test_files/spark/math/negative.slt

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -263,23 +263,17 @@ SELECT negative(make_interval(-2, -5, -1, -10, -3, -30, -15.25));
263263
----
264264
29 mons 17 days 3 hours 30 mins 15.250000000 secs
265265

266-
# Test negative with zero interval
267-
query ?
268-
SELECT negative(make_interval(0, 0, 0, 0, 0, 0, 0.0));
269-
----
270-
271266
# Test negative with CalendarInterval from table
272267
statement ok
273268
CREATE TABLE interval_test AS VALUES
274269
(make_interval(1, 2, 0, 5, 0, 0, 0.0)),
275-
(make_interval(-3, -1, 0, -2, 0, 0, 0.0)),
276-
(make_interval(0, 0, 0, 0, 0, 0, 0.0));
270+
(make_interval(-3, -1, 0, -2, 0, 0, 0.0));
277271

278272
query ? rowsort
279273
SELECT negative(column1) FROM interval_test;
280274
----
281-
-14 mons -5 days 0 hours 0 mins 0.00 secs
282-
37 mons 2 days 0 hours 0 mins 0.00 secs
275+
-14 mons -5 days
276+
37 mons 2 days
283277

284278
statement ok
285279
DROP TABLE interval_test;

0 commit comments

Comments
 (0)