ClickHouse/tests/queries/0_stateless/02346_fulltext_index_bug59039.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
545 B
MySQL
Raw Normal View History

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.
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,
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;