Merge pull request #47166 from ClickHouse/rs/fulltext_result_separators

02346_full_text_search.sql: Add result separators to simplify analysis
This commit is contained in:
Alexey Milovidov 2023-03-04 12:07:06 +03:00 committed by GitHub
commit 738fb04e99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 9 deletions

View File

@ -1,3 +1,4 @@
Test inverted(2)
af inverted
1
101 Alick a01
@ -10,6 +11,7 @@ af inverted
113 Click b03
118 Click b08
1
Test inverted()
af inverted
101 Alick a01
106 Alick a06
@ -21,9 +23,11 @@ af inverted
101 Alick a01
111 Alick b01
1
Test on array columns
af inverted
3 ['Click a03','Click b03']
1
Test on map columns
af inverted
103 {'Click':'Click a03'}
108 {'Click':'Click a08'}
@ -32,20 +36,25 @@ af inverted
1
103 {'Click':'Click a03'}
1
Test inverted(2) on a column with two parts
af inverted
101 Alick a01
111 Alick b01
201 rick c01
1
Test inverted(2) on UTF-8 data
af inverted
102 clickhouse你好
1
Test max_digestion_size_per_segment
af inverted
BC614E,05397FB1,6969696969898240,CF3304
1
Test density==1
af inverted
1
1
Test density==0.1
af inverted
1
1

View File

@ -2,7 +2,7 @@ SET allow_experimental_inverted_index = 1;
SET log_queries = 1;
----------------------------------------------------
-- Test inverted(2)
SELECT 'Test inverted(2)';
DROP TABLE IF EXISTS tab;
@ -58,7 +58,7 @@ SELECT read_rows==8 from system.query_log
LIMIT 1;
----------------------------------------------------
-- Test inverted()
SELECT 'Test inverted()';
DROP TABLE IF EXISTS tab_x;
@ -111,7 +111,7 @@ SELECT read_rows==4 from system.query_log
LIMIT 1;
----------------------------------------------------
-- Test on array columns
SELECT 'Test on array columns';
DROP TABLE IF EXISTS tab;
@ -138,7 +138,7 @@ SELECT read_rows==2 from system.query_log
LIMIT 1;
----------------------------------------------------
-- Test on map columns
SELECT 'Test on map columns';
DROP TABLE IF EXISTS tab;
@ -178,7 +178,8 @@ SELECT read_rows==8 from system.query_log
LIMIT 1;
----------------------------------------------------
-- Test inverted(2) on a column with two parts
SELECT 'Test inverted(2) on a column with two parts';
DROP TABLE IF EXISTS tab;
@ -206,7 +207,7 @@ SELECT read_rows==6 from system.query_log
LIMIT 1;
----------------------------------------------------
-- Test inverted(2) on UTF-8 data
SELECT 'Test inverted(2) on UTF-8 data';
DROP TABLE IF EXISTS tab;
@ -234,7 +235,7 @@ SELECT read_rows==2 from system.query_log
LIMIT 1;
----------------------------------------------------
-- Test max_digestion_size_per_segment
SELECT 'Test max_digestion_size_per_segment';
DROP TABLE IF EXISTS tab;
@ -265,7 +266,7 @@ SELECT read_rows==256 from system.query_log
LIMIT 1;
----------------------------------------------------
-- Test density==1
SELECT 'Test density==1';
DROP TABLE IF EXISTS tab;
@ -294,7 +295,7 @@ SELECT read_rows==0 from system.query_log
LIMIT 1;
----------------------------------------------------
-- Test density==0.1
SELECT 'Test density==0.1';
DROP TABLE IF EXISTS tab;