mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
28 lines
744 B
XML
28 lines
744 B
XML
<test>
|
|
<create_query>
|
|
CREATE TABLE tab
|
|
(
|
|
id UInt64,
|
|
message String,
|
|
INDEX idx(message) TYPE text(tokenizer = 'splitByNonAlpha')
|
|
)
|
|
ENGINE = MergeTree
|
|
ORDER BY id
|
|
</create_query>
|
|
|
|
<fill_query>
|
|
INSERT INTO tab
|
|
SELECT
|
|
number,
|
|
if(number % 100 = 0,
|
|
repeat('clickhouse is a fast column oriented database system ', 4),
|
|
repeat('the quick brown fox jumps over the lazy dog near the river ', 4))
|
|
FROM numbers(10000000)
|
|
</fill_query>
|
|
|
|
<query>SELECT count() FROM tab WHERE message LIKE '%clickhouse%'</query>
|
|
<query>SELECT count() FROM tab WHERE message ILIKE '%CLICKHOUSE%'</query>
|
|
|
|
<drop_query>DROP TABLE IF EXISTS tab</drop_query>
|
|
</test>
|