forked from apache/doris
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix](cases) array contains with index cases (apache#39087)
## Proposed changes backport : apache#34848 Issue Number: close #xxx <!--Describe your changes.-->
- Loading branch information
Showing
49 changed files
with
1,458 additions
and
0 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
regression-test/data/mysql_fulltext_array_contains/fts_input_data1.csv
Large diffs are not rendered by default.
Oops, something went wrong.
100 changes: 100 additions & 0 deletions
100
regression-test/data/mysql_fulltext_array_contains/fts_input_data2.csv
Large diffs are not rendered by default.
Oops, something went wrong.
100 changes: 100 additions & 0 deletions
100
regression-test/data/mysql_fulltext_array_contains/fts_input_data3.csv
Large diffs are not rendered by default.
Oops, something went wrong.
100 changes: 100 additions & 0 deletions
100
regression-test/data/mysql_fulltext_array_contains/fts_input_data4.csv
Large diffs are not rendered by default.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
regression-test/data/mysql_fulltext_array_contains/sql/basic_q01.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !basic_q01 -- | ||
|
||
-- !basic_q01_2 -- | ||
0 | ||
|
||
-- !basic_q01_3 -- | ||
|
||
-- !basic_q01_4 -- | ||
|
||
-- !basic_q01_5 -- | ||
|
||
-- !basic_q01_6 -- | ||
|
||
-- !basic_q01_7 -- | ||
|
||
-- !basic_q01_8 -- | ||
|
||
-- !basic_q01_9 -- | ||
|
||
-- !basic_q01_10 -- | ||
|
22 changes: 22 additions & 0 deletions
22
regression-test/data/mysql_fulltext_array_contains/sql/basic_q02.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !basic_q02 -- | ||
|
||
-- !basic_q02_2 -- | ||
0 | ||
|
||
-- !basic_q02_3 -- | ||
|
||
-- !basic_q02_4 -- | ||
|
||
-- !basic_q02_5 -- | ||
|
||
-- !basic_q02_6 -- | ||
|
||
-- !basic_q02_7 -- | ||
|
||
-- !basic_q02_8 -- | ||
|
||
-- !basic_q02_9 -- | ||
|
||
-- !basic_q02_10 -- | ||
|
33 changes: 33 additions & 0 deletions
33
regression-test/data/mysql_fulltext_array_contains/sql/fulltext_q01.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !fulltext_q01 -- | ||
|
||
-- !fulltext_q01_2 -- | ||
Full-text indexes ["are called collections"] | ||
|
||
-- !fulltext_q01_3 -- | ||
Full-text indexes ["are called collections"] | ||
|
||
-- !fulltext_q01_4 -- | ||
Only MyISAM tables ["support collections"] | ||
|
||
-- !fulltext_q01_5 -- | ||
MySQL has now support ["for full-text search"] | ||
|
||
-- !fulltext_q01_6 -- | ||
MySQL has now support ["for full-text search"] | ||
|
||
-- !fulltext_q01_7 -- | ||
|
||
-- !fulltext_q01_8 -- | ||
Only MyISAM tables ["support collections"] | ||
|
||
-- !fulltext_q01_9 -- | ||
Full-text search in MySQL ["implements vector space model"] | ||
|
||
-- !fulltext_q01_10 -- | ||
|
||
-- !fulltext_q01_11 -- | ||
Full-text search in MySQL ["implements vector space model"] | ||
|
||
-- !fulltext_q01_12 -- | ||
|
33 changes: 33 additions & 0 deletions
33
regression-test/data/mysql_fulltext_array_contains/sql/fulltext_q02.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !fulltext_q02 -- | ||
|
||
-- !fulltext_q02_2 -- | ||
Full-text indexes ["are called collections"] | ||
|
||
-- !fulltext_q02_3 -- | ||
Full-text indexes ["are called collections"] | ||
|
||
-- !fulltext_q02_4 -- | ||
Only MyISAM tables ["support collections"] | ||
|
||
-- !fulltext_q02_5 -- | ||
MySQL has now support ["for full-text search"] | ||
|
||
-- !fulltext_q02_6 -- | ||
MySQL has now support ["for full-text search"] | ||
|
||
-- !fulltext_q02_7 -- | ||
|
||
-- !fulltext_q02_8 -- | ||
Only MyISAM tables ["support collections"] | ||
|
||
-- !fulltext_q02_9 -- | ||
Full-text search in MySQL ["implements vector space model"] | ||
|
||
-- !fulltext_q02_10 -- | ||
|
||
-- !fulltext_q02_11 -- | ||
Full-text search in MySQL ["implements vector space model"] | ||
|
||
-- !fulltext_q02_12 -- | ||
|
29 changes: 29 additions & 0 deletions
29
regression-test/data/mysql_fulltext_array_contains/sql/large_records_q01.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !large_records_q01 -- | ||
49 | ||
|
||
-- !large_records_q01_2 -- | ||
|
||
-- !large_records_q01_3 -- | ||
0 | ||
|
||
-- !large_records_q01_4 -- | ||
0 | ||
|
||
-- !large_records_q01_5 -- | ||
0 | ||
|
||
-- !large_records_q01_6 -- | ||
0 | ||
|
||
-- !large_records_q01_7 -- | ||
0 | ||
|
||
-- !large_records_q01_8 -- | ||
0 | ||
|
||
-- !large_records_q01_9 -- | ||
0 | ||
|
||
-- !large_records_q01_10 -- | ||
|
29 changes: 29 additions & 0 deletions
29
regression-test/data/mysql_fulltext_array_contains/sql/large_records_q02.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !large_records_q02 -- | ||
49 | ||
|
||
-- !large_records_q02_2 -- | ||
|
||
-- !large_records_q02_3 -- | ||
0 | ||
|
||
-- !large_records_q02_4 -- | ||
0 | ||
|
||
-- !large_records_q02_5 -- | ||
0 | ||
|
||
-- !large_records_q02_6 -- | ||
0 | ||
|
||
-- !large_records_q02_7 -- | ||
0 | ||
|
||
-- !large_records_q02_8 -- | ||
0 | ||
|
||
-- !large_records_q02_9 -- | ||
0 | ||
|
||
-- !large_records_q02_10 -- | ||
|
28 changes: 28 additions & 0 deletions
28
regression-test/data/mysql_fulltext_array_contains/sql/large_records_q03.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !large_records_q03 -- | ||
100 | ||
|
||
-- !large_records_q03_2 -- | ||
30 | ||
|
||
-- !large_records_q03_3 -- | ||
35 | ||
|
||
-- !large_records_q03_4 -- | ||
1 | ||
|
||
-- !large_records_q03_5 -- | ||
1 | ||
|
||
-- !large_records_q03_6 -- | ||
1 | ||
|
||
-- !large_records_q03_7 -- | ||
1 | ||
|
||
-- !large_records_q03_8 -- | ||
0 | ||
|
||
-- !large_records_q03_9 -- | ||
0 | ||
|
28 changes: 28 additions & 0 deletions
28
regression-test/data/mysql_fulltext_array_contains/sql/large_records_q04.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !large_records_q04 -- | ||
100 | ||
|
||
-- !large_records_q04_2 -- | ||
30 | ||
|
||
-- !large_records_q04_3 -- | ||
35 | ||
|
||
-- !large_records_q04_4 -- | ||
1 | ||
|
||
-- !large_records_q04_5 -- | ||
1 | ||
|
||
-- !large_records_q04_6 -- | ||
1 | ||
|
||
-- !large_records_q04_7 -- | ||
1 | ||
|
||
-- !large_records_q04_8 -- | ||
0 | ||
|
||
-- !large_records_q04_9 -- | ||
0 | ||
|
19 changes: 19 additions & 0 deletions
19
regression-test/data/mysql_fulltext_array_contains/sql/large_records_q05.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !large_records_q05 -- | ||
100 | ||
|
||
-- !large_records_q05_2 -- | ||
0 | ||
|
||
-- !large_records_q05_3 -- | ||
100 | ||
|
||
-- !large_records_q05_4 -- | ||
100 | ||
|
||
-- !large_records_q05_5 -- | ||
100 | ||
|
||
-- !large_records_q05_6 -- | ||
0 | ||
|
19 changes: 19 additions & 0 deletions
19
regression-test/data/mysql_fulltext_array_contains/sql/large_records_q06.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !large_records_q06 -- | ||
100 | ||
|
||
-- !large_records_q06_2 -- | ||
0 | ||
|
||
-- !large_records_q06_3 -- | ||
100 | ||
|
||
-- !large_records_q06_4 -- | ||
100 | ||
|
||
-- !large_records_q06_5 -- | ||
100 | ||
|
||
-- !large_records_q06_6 -- | ||
0 | ||
|
19 changes: 19 additions & 0 deletions
19
regression-test/data/mysql_fulltext_array_contains/sql/large_records_q07.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !large_records_q07 -- | ||
100 | ||
|
||
-- !large_records_q07_2 -- | ||
0 | ||
|
||
-- !large_records_q07_3 -- | ||
100 | ||
|
||
-- !large_records_q07_4 -- | ||
100 | ||
|
||
-- !large_records_q07_5 -- | ||
0 | ||
|
||
-- !large_records_q07_6 -- | ||
0 | ||
|
19 changes: 19 additions & 0 deletions
19
regression-test/data/mysql_fulltext_array_contains/sql/large_records_q08.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !large_records_q08 -- | ||
100 | ||
|
||
-- !large_records_q08_2 -- | ||
0 | ||
|
||
-- !large_records_q08_3 -- | ||
100 | ||
|
||
-- !large_records_q08_4 -- | ||
100 | ||
|
||
-- !large_records_q08_5 -- | ||
0 | ||
|
||
-- !large_records_q08_6 -- | ||
0 | ||
|
3 changes: 3 additions & 0 deletions
3
regression-test/data/mysql_fulltext_array_contains/sql/test_join_q01.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !test_join_q01 -- | ||
|
3 changes: 3 additions & 0 deletions
3
regression-test/data/mysql_fulltext_array_contains/sql/test_join_q02.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !test_join_q02 -- | ||
|
12 changes: 12 additions & 0 deletions
12
regression-test/suites/mysql_fulltext_array_contains/ddl/articles_dk_array.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
CREATE TABLE IF NOT EXISTS articles_dk_array ( | ||
id INT NOT NULL, | ||
title ARRAY<VARCHAR(200)>, | ||
body ARRAY<TEXT>, | ||
INDEX title_idx (title) USING INVERTED PROPERTIES("parser"="standard") COMMENT 'title_idx', | ||
INDEX body_idx (body) USING INVERTED PROPERTIES("parser"="standard") COMMENT 'body_idx' | ||
) | ||
DUPLICATE KEY(id) | ||
DISTRIBUTED BY HASH(id) BUCKETS 3 | ||
PROPERTIES ( | ||
"replication_num" = "1" | ||
); |
13 changes: 13 additions & 0 deletions
13
regression-test/suites/mysql_fulltext_array_contains/ddl/articles_uk_array.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
CREATE TABLE IF NOT EXISTS articles_uk_array ( | ||
id INT NOT NULL, | ||
title ARRAY<VARCHAR(200)>, | ||
body ARRAY<TEXT>, | ||
INDEX title_idx (title) USING INVERTED PROPERTIES("parser"="standard") COMMENT 'title_idx', | ||
INDEX body_idx (body) USING INVERTED PROPERTIES("parser"="standard") COMMENT 'body_idx' | ||
) | ||
UNIQUE KEY(id) | ||
DISTRIBUTED BY HASH(id) BUCKETS 3 | ||
PROPERTIES ( | ||
"replication_num" = "1", | ||
"enable_unique_key_merge_on_write" = "true" | ||
); |
11 changes: 11 additions & 0 deletions
11
regression-test/suites/mysql_fulltext_array_contains/ddl/fulltext_t1_dk_array.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE TABLE IF NOT EXISTS fulltext_t1_dk_array ( | ||
a VARCHAR(200), | ||
b ARRAY<TEXT>, | ||
INDEX a_idx (a) USING INVERTED PROPERTIES("parser"="standard") COMMENT 'a_idx', | ||
INDEX b_idx (b) USING INVERTED PROPERTIES("parser"="standard") COMMENT 'b_idx' | ||
) | ||
DUPLICATE KEY(a) | ||
DISTRIBUTED BY HASH(a) BUCKETS 3 | ||
PROPERTIES ( | ||
"replication_num" = "1" | ||
); |
12 changes: 12 additions & 0 deletions
12
regression-test/suites/mysql_fulltext_array_contains/ddl/fulltext_t1_uk_array.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
CREATE TABLE IF NOT EXISTS fulltext_t1_uk_array ( | ||
a VARCHAR(200), | ||
b ARRAY<TEXT>, | ||
INDEX a_idx (a) USING INVERTED PROPERTIES("parser"="standard") COMMENT 'a_idx', | ||
INDEX b_idx (b) USING INVERTED PROPERTIES("parser"="standard") COMMENT 'b_idx' | ||
) | ||
UNIQUE KEY(a) | ||
DISTRIBUTED BY HASH(a) BUCKETS 3 | ||
PROPERTIES ( | ||
"replication_num" = "1", | ||
"enable_unique_key_merge_on_write" = "true" | ||
); |
10 changes: 10 additions & 0 deletions
10
regression-test/suites/mysql_fulltext_array_contains/ddl/join_t1_dk_array.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CREATE TABLE IF NOT EXISTS join_t1_dk_array ( | ||
venue_id int(11) default null, | ||
venue_text varchar(255) default null, | ||
dt datetime default null | ||
) | ||
DUPLICATE KEY(venue_id) | ||
DISTRIBUTED BY HASH(venue_id) BUCKETS 3 | ||
PROPERTIES ( | ||
"replication_num" = "1" | ||
); |
Oops, something went wrong.