ClickHouse/tests/queries/0_stateless/02457_tuple_of_intervals.reference
2022-10-24 02:11:08 +00:00

33 lines
685 B
Plaintext

SELECT (toIntervalSecond(-1), toIntervalMinute(2), toIntervalMonth(-3), toIntervalYear(1))
---
-1
2022-10-12
2022-10-10
(2)
(0)
2022-11-12
2022-09-10
(1,2)
(1,0)
---
2022-10-12
2022-10-10
2022-10-12
(2) Tuple(IntervalSecond)
(0) Tuple(IntervalSecond)
---
3 IntervalSecond
(1,2) Tuple(IntervalHour, IntervalSecond)
(1,1,1) Tuple(IntervalSecond, IntervalHour, IntervalSecond)
(2,1) Tuple(IntervalSecond, IntervalHour)
-3 IntervalSecond
(-1,-2) Tuple(IntervalHour, IntervalSecond)
(-1,-1,-1) Tuple(IntervalSecond, IntervalHour, IntervalSecond)
(-2,-1) Tuple(IntervalSecond, IntervalHour)
---
1 2022-03-01
1 2022-02-28
1 2023-07-11 00:01:59
1 2021-07-31 23:00:00
1 2021-06-10 23:59:59.000