mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 11:32:03 +00:00
add tests
This commit is contained in:
parent
71277892cf
commit
6b6c72d991
@ -0,0 +1,9 @@
|
||||
2022-03-01 00:00:00
|
||||
2022-03-01
|
||||
2022-02-28
|
||||
2022-03-01 00:00:00
|
||||
2022-03-01
|
||||
2022-02-28
|
||||
2022-03-01 00:00:00
|
||||
2022-03-01
|
||||
2022-02-28
|
@ -0,0 +1,9 @@
|
||||
SELECT dateTrunc('DAY', toDateTime('2022-03-01 12:55:55'));
|
||||
SELECT dateTrunc('MONTH', toDateTime64('2022-03-01 12:55:55', 2));
|
||||
SELECT dateTrunc('WEEK', toDate('2022-03-01'));
|
||||
SELECT dateTrunc('Day', toDateTime('2022-03-01 12:55:55'));
|
||||
SELECT dateTrunc('Month', toDateTime64('2022-03-01 12:55:55', 2));
|
||||
SELECT dateTrunc('Week', toDate('2022-03-01'));
|
||||
SELECT dateTrunc('day', toDateTime('2022-03-01 12:55:55'));
|
||||
SELECT dateTrunc('month', toDateTime64('2022-03-01 12:55:55', 2));
|
||||
SELECT dateTrunc('week', toDate('2022-03-01'));
|
Loading…
Reference in New Issue
Block a user