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.
[cases](array_contains)add cases for array_contains supporting invert…
…ed index and fix stopwords as query string (apache#35299) ## Proposed changes Issue Number: close #xxx <!--Describe your changes.--> ## Further comments If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
- Loading branch information
Showing
48 changed files
with
7,999 additions
and
2 deletions.
There are no files selected for viewing
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
1,000 changes: 1,000 additions & 0 deletions
1,000
regression-test/data/inverted_index_p0/array_contains/documents-1000.json
Large diffs are not rendered by default.
Oops, something went wrong.
100 changes: 100 additions & 0 deletions
100
regression-test/data/inverted_index_p0/array_contains/test_char_replace_arr.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,100 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
7 changes: 7 additions & 0 deletions
7
regression-test/data/inverted_index_p0/array_contains/test_compound_arr.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,7 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !sql -- | ||
2 | ||
|
||
-- !sql -- | ||
3 | ||
|
46 changes: 46 additions & 0 deletions
46
regression-test/data/inverted_index_p0/array_contains/test_count_on_index_httplogs_arr.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,46 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 0 | ||
|
||
-- !sql -- | ||
0 \N | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 | ||
|
||
-- !sql -- | ||
0 0 | ||
|
||
-- !sql -- | ||
0 \N | ||
|
||
-- !sql -- | ||
0 | ||
|
6 changes: 6 additions & 0 deletions
6
regression-test/data/inverted_index_p0/array_contains/test_equal_on_fulltext_arr.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,6 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !sql -- | ||
2 ["I am a person"] | ||
|
||
-- !sql -- | ||
|
5 changes: 5 additions & 0 deletions
5
regression-test/data/inverted_index_p0/array_contains/test_index_bkd_null_arr.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,5 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !sql -- | ||
|
||
-- !sql -- | ||
|
37 changes: 37 additions & 0 deletions
37
regression-test/data/inverted_index_p0/array_contains/test_index_change_2_arr.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,37 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !select1 -- | ||
1 2017-10-01 10 1 ["Beijing China"] ["Software Developer"] | ||
2 2017-10-01 10 1 ["Beijing China"] ["Communication Engineer"] | ||
3 2017-10-01 10 1 ["Shanghai China"] ["electrical engineer"] | ||
4 2017-10-02 10 0 ["Beijing China"] ["Both a teacher and a scientist"] | ||
5 2017-10-02 10 1 ["Shenzhen China"] ["teacher"] | ||
6 2017-10-03 10 1 ["Hongkong China"] ["Architectural designer"] | ||
|
||
-- !select2 -- | ||
1 2017-10-01 10 1 ["Beijing China"] ["Software Developer"] | ||
2 2017-10-01 10 1 ["Beijing China"] ["Communication Engineer"] | ||
4 2017-10-02 10 0 ["Beijing China"] ["Both a teacher and a scientist"] | ||
|
||
-- !select3 -- | ||
1 2017-10-01 10 1 ["Beijing China"] ["Software Developer"] | ||
2 2017-10-01 10 1 ["Beijing China"] ["Communication Engineer"] | ||
|
||
-- !select4 -- | ||
|
||
-- !select5 -- | ||
3 2017-10-01 10 1 ["Shanghai China"] ["electrical engineer"] | ||
|
||
-- !select6 -- | ||
3 2017-10-01 10 1 ["Shanghai China"] ["electrical engineer"] | ||
|
||
-- !select7 -- | ||
|
||
-- !select8 -- | ||
|
||
-- !select9 -- | ||
|
||
-- !select10 -- | ||
3 2017-10-01 10 1 ["Shanghai China"] ["electrical engineer"] | ||
|
||
-- !select11 -- | ||
|
31 changes: 31 additions & 0 deletions
31
regression-test/data/inverted_index_p0/array_contains/test_index_change_4_arr.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,31 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !select1 -- | ||
1 2017-10-01 10 1 ["Beijing China"] ["Software Developer"] | ||
2 2017-10-01 10 1 ["Beijing China"] ["Communication Engineer"] | ||
3 2017-10-01 10 1 ["Shanghai China"] ["electrical engineer"] | ||
4 2017-10-02 10 0 ["Beijing China"] ["Both a teacher and a scientist"] | ||
5 2017-10-02 10 1 ["Shenzhen China"] ["teacher"] | ||
6 2017-10-03 10 1 ["Hongkong China"] ["Architectural designer"] | ||
|
||
-- !select2_v1 -- | ||
|
||
-- !select3_v1 -- | ||
|
||
-- !select4_v1 -- | ||
|
||
-- !select5_v1 -- | ||
3 2017-10-01 10 1 ["Shanghai China"] ["electrical engineer"] | ||
|
||
-- !select6_v1 -- | ||
|
||
-- !select7_v1 -- | ||
|
||
-- !select8_v1 -- | ||
|
||
-- !select9_v1 -- | ||
|
||
-- !select10_v1 -- | ||
3 2017-10-01 10 1 ["Shanghai China"] ["electrical engineer"] | ||
|
||
-- !select11_v1 -- | ||
|
31 changes: 31 additions & 0 deletions
31
regression-test/data/inverted_index_p0/array_contains/test_index_change_6_arr.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,31 @@ | ||
-- This file is automatically generated. You should know what you did if you want to edit this | ||
-- !select1 -- | ||
1 2017-10-01 10 1 ["Beijing China"] ["Software Developer"] | ||
2 2017-10-01 10 1 ["Beijing China"] ["Communication Engineer"] | ||
3 2017-10-01 10 1 ["Shanghai China"] ["electrical engineer"] | ||
4 2017-10-02 10 0 ["Beijing China"] ["Both a teacher and a scientist"] | ||
5 2017-10-02 10 1 ["Shenzhen China"] ["teacher"] | ||
6 2017-10-03 10 1 ["Hongkong China"] ["Architectural designer"] | ||
|
||
-- !select2_v1 -- | ||
|
||
-- !select3_v1 -- | ||
|
||
-- !select4_v1 -- | ||
|
||
-- !select5_v1 -- | ||
3 2017-10-01 10 1 ["Shanghai China"] ["electrical engineer"] | ||
|
||
-- !select6_v1 -- | ||
|
||
-- !select7_v1 -- | ||
|
||
-- !select8_v1 -- | ||
|
||
-- !select9_v1 -- | ||
|
||
-- !select10_v1 -- | ||
3 2017-10-01 10 1 ["Shanghai China"] ["electrical engineer"] | ||
|
||
-- !select11_v1 -- | ||
|
Oops, something went wrong.