mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 19:42:00 +00:00
16 lines
306 B
SQL
16 lines
306 B
SQL
SET allow_experimental_inverted_index = 1;
|
|
|
|
CREATE TABLE t
|
|
(
|
|
`key` UInt64,
|
|
`str` String,
|
|
INDEX inv_idx str TYPE inverted(0) GRANULARITY 1
|
|
)
|
|
ENGINE = MergeTree
|
|
ORDER BY key;
|
|
|
|
INSERT INTO t VALUES (1, 'Hello World');
|
|
|
|
ALTER TABLE t DETACH PART 'all_1_1_0';
|
|
|
|
ALTER TABLE t ATTACH PART 'all_1_1_0'; |