mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 18:42:26 +00:00
Add 02763_last_day_of_week test draft
This commit is contained in:
parent
07d9f33b2e
commit
4935b18160
10
tests/queries/0_stateless/02763_last_day_of_week.reference
Normal file
10
tests/queries/0_stateless/02763_last_day_of_week.reference
Normal file
@ -0,0 +1,10 @@
|
||||
2018-12-25 2018-12-25 00:00:00 2018-12-29 2018-12-29 2018-12-30 2018-12-30
|
||||
2018-12-26 2018-12-26 00:00:00 2018-12-29 2018-12-29 2018-12-30 2018-12-30
|
||||
2018-12-27 2018-12-27 00:00:00 2018-12-29 2018-12-29 2018-12-30 2018-12-30
|
||||
2018-12-28 2018-12-28 00:00:00 2018-12-29 2018-12-29 2018-12-30 2018-12-30
|
||||
2018-12-29 2018-12-29 00:00:00 2018-12-29 2018-12-29 2018-12-30 2018-12-30
|
||||
2018-12-30 2018-12-30 00:00:00 2019-01-05 2019-01-05 2018-12-30 2018-12-30
|
||||
2018-12-31 2018-12-31 00:00:00 2019-01-05 2019-01-05 2019-01-06 2019-01-06
|
||||
2019-01-01 2019-01-01 00:00:00 2019-01-05 2019-01-05 2019-01-06 2019-01-06
|
||||
2019-01-02 2019-01-02 00:00:00 2019-01-05 2019-01-05 2019-01-06 2019-01-06
|
||||
2019-01-03 2019-01-03 00:00:00 2019-01-05 2019-01-05 2019-01-06 2019-01-06
|
9
tests/queries/0_stateless/02763_last_day_of_week.sql
Normal file
9
tests/queries/0_stateless/02763_last_day_of_week.sql
Normal file
@ -0,0 +1,9 @@
|
||||
SELECT
|
||||
toDate('2018-12-25') + number AS x,
|
||||
toDateTime(x) AS x_t,
|
||||
toLastDayOfWeek(x) AS w0,
|
||||
toLastDayOfWeek(x_t) AS wt0,
|
||||
toLastDayOfWeek(x, 3) AS w3,
|
||||
toLastDayOfWeek(x_t, 3) AS wt3
|
||||
FROM numbers(10);
|
||||
|
Loading…
Reference in New Issue
Block a user