add tests

This commit is contained in:
Yarik Briukhovetskyi 2023-12-07 16:43:11 +00:00
parent 71277892cf
commit 6b6c72d991
2 changed files with 18 additions and 0 deletions

View File

@ -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

View File

@ -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'));