Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix](cases) array contains with index cases #39087

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

100 changes: 100 additions & 0 deletions regression-test/data/mysql_fulltext_array_contains/fts_input_data2.csv

Large diffs are not rendered by default.

100 changes: 100 additions & 0 deletions regression-test/data/mysql_fulltext_array_contains/fts_input_data3.csv

Large diffs are not rendered by default.

100 changes: 100 additions & 0 deletions regression-test/data/mysql_fulltext_array_contains/fts_input_data4.csv

Large diffs are not rendered by default.

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 --

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 --

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 --

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 --

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 --

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 --

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

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

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

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

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

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

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 --

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 --

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"
);
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"
);
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"
);
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"
);
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"
);
Loading
Loading