ClickHouse/tests/queries/0_stateless/00178_query_datetime64_index.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
400 B
MySQL
Raw Normal View History

2023-05-27 09:39:21 +00:00
DROP TABLE IF EXISTS datetime64_index_tbl;
CREATE TABLE datetime64_index_tbl(ts DateTime64(3, 'UTC')) ENGINE=MergeTree ORDER BY ts;
INSERT INTO datetime64_index_tbl(ts) VALUES(toDateTime64('2023-05-27 00:00:00', 3, 'UTC'));
2023-05-28 02:40:34 +00:00
SELECT ts FROM datetime64_index_tbl WHERE ts < toDate('2023-05-28');
SELECT ts FROM datetime64_index_tbl WHERE ts < toDate32('2023-05-28');
2023-05-27 09:39:21 +00:00
2023-05-27 10:04:19 +00:00
DROP TABLE datetime64_index_tbl;