ClickHouse/tests/queries/0_stateless/02346_fulltext_index_bug59039.sql
2024-05-31 15:50:16 +00:00

21 lines
545 B
SQL

-- 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.
SET allow_experimental_full_text_index = 1;
DROP TABLE IF EXISTS tab;
CREATE TABLE tab
(
id UInt64,
doc String,
INDEX text_idx doc TYPE full_text
)
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;