ClickHouse/tests/queries/0_stateless/02534_default_granularity.sql
Robert Schulze 4050b637f1
ALTER TABLE ADD INDEX: Add default GRANULARITY argument for secondary indexes
- Related to #45451, which provides a default GRANULARITY when the
  skipping index is created in CREATE TABLE.
2023-06-07 09:04:24 +00:00

10 lines
395 B
SQL

DROP TABLE IF EXISTS users_02534;
CREATE TABLE users_02534 (id Int16, name String, INDEX bf_idx(name) TYPE minmax) ENGINE=MergeTree ORDER BY id;
SHOW CREATE TABLE users_02534;
DROP TABLE users_02534;
CREATE TABLE users_02534 (id Int16, name String) ENGINE=MergeTree ORDER BY id;
ALTER TABLE users_02534 ADD INDEX bf_idx(name) TYPE minmax;
SHOW CREATE TABLE users_02534;
DROP TABLE users_02534;