ClickHouse/tests/queries/0_stateless/02131_skip_index_not_materialized.sql

13 lines
459 B
MySQL
Raw Normal View History

DROP TABLE IF EXISTS t_index_non_materialized;
CREATE TABLE t_index_non_materialized (a UInt32) ENGINE = MergeTree ORDER BY tuple();
INSERT INTO t_index_non_materialized VALUES (1);
2021-12-08 12:36:19 +00:00
ALTER TABLE t_index_non_materialized ADD INDEX ind_set (a) TYPE set(1) GRANULARITY 1;
ALTER TABLE t_index_non_materialized ADD INDEX ind_minmax (a) TYPE minmax() GRANULARITY 1;
SELECT count() FROM t_index_non_materialized WHERE a = 1;
DROP TABLE t_index_non_materialized;