mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Added test [#CLICKHOUSE-2]
This commit is contained in:
parent
02c67e2b13
commit
796c65a09f
@ -0,0 +1,6 @@
|
||||
1
|
||||
1
|
||||
1
|
||||
1
|
||||
1
|
||||
1
|
16
dbms/tests/queries/0_stateless/00607_index_in_in.sql
Normal file
16
dbms/tests/queries/0_stateless/00607_index_in_in.sql
Normal file
@ -0,0 +1,16 @@
|
||||
DROP TABLE IF EXISTS test.merge_tree;
|
||||
CREATE TABLE test.merge_tree (x UInt32) ENGINE = MergeTree ORDER BY x SETTINGS index_granularity = 1;
|
||||
INSERT INTO test.merge_tree VALUES (0), (1);
|
||||
|
||||
SET force_primary_key = 1;
|
||||
SET max_rows_to_read = 1;
|
||||
|
||||
SELECT count() FROM test.merge_tree WHERE x = 0;
|
||||
SELECT count() FROM test.merge_tree WHERE toUInt32(x) = 0;
|
||||
SELECT count() FROM test.merge_tree WHERE toUInt64(x) = 0;
|
||||
|
||||
SELECT count() FROM test.merge_tree WHERE x IN (0, 0);
|
||||
SELECT count() FROM test.merge_tree WHERE toUInt32(x) IN (0, 0);
|
||||
SELECT count() FROM test.merge_tree WHERE toUInt64(x) IN (0, 0);
|
||||
|
||||
DROP TABLE test.merge_tree;
|
Loading…
Reference in New Issue
Block a user