mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Merge pull request #16103 from den-crane/test/bug_8425
test for the bug #8425
This commit is contained in:
commit
8f0a52bbcf
@ -0,0 +1,2 @@
|
||||
0
|
||||
1
|
@ -0,0 +1,14 @@
|
||||
DROP TABLE IF EXISTS logs;
|
||||
|
||||
CREATE TABLE logs(
|
||||
date_visited DateTime,
|
||||
date Date MATERIALIZED toDate(date_visited)
|
||||
) ENGINE = MergeTree() ORDER BY tuple();
|
||||
|
||||
SELECT count() FROM logs AS plogs WHERE plogs.date = '2019-11-20';
|
||||
|
||||
INSERT INTO logs VALUES('2019-11-20 00:00:00');
|
||||
|
||||
SELECT count() FROM logs AS plogs WHERE plogs.date = '2019-11-20';
|
||||
|
||||
DROP TABLE logs;
|
Loading…
Reference in New Issue
Block a user