2024-01-23 10:06:25 +00:00
|
|
|
-- This is supposed to test that DROP INDEX removes all index related files. Can't test this directly but at least run the statement and
|
|
|
|
-- check that no bad things happen.
|
|
|
|
|
2024-05-30 20:20:15 +00:00
|
|
|
SET allow_experimental_full_text_index = 1;
|
2024-01-23 10:06:25 +00:00
|
|
|
|
|
|
|
DROP TABLE IF EXISTS tab;
|
|
|
|
|
|
|
|
CREATE TABLE tab
|
|
|
|
(
|
|
|
|
id UInt64,
|
|
|
|
doc String,
|
2024-04-23 14:19:56 +00:00
|
|
|
INDEX text_idx doc TYPE full_text
|
2024-01-23 10:06:25 +00:00
|
|
|
)
|
|
|
|
ENGINE = MergeTree
|
|
|
|
ORDER BY id
|
|
|
|
SETTINGS index_granularity = 2, index_granularity_bytes = '10Mi', min_bytes_for_wide_part = 0, min_rows_for_wide_part = 0;
|
|
|
|
|
|
|
|
ALTER TABLE tab DROP INDEX text_idx;
|
|
|
|
|
|
|
|
DROP TABLE tab;
|