ClickHouse/tests/queries/0_stateless/01345_index_date_vs_datetime.sql

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

7 lines
286 B
MySQL
Raw Normal View History

2020-06-26 20:44:08 +00:00
DROP TABLE IF EXISTS index;
CREATE TABLE index (d Date) ENGINE = MergeTree ORDER BY d;
INSERT INTO index VALUES ('2020-04-07');
SELECT * FROM index WHERE d > toDateTime('2020-04-06 23:59:59');
SELECT * FROM index WHERE identity(d > toDateTime('2020-04-06 23:59:59'));
DROP TABLE index;