Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MB-35392 Make sure ANY clause is properly covered by array index
Change-Id: Ib26ae94c2b1a5bc687ec0154b9fc91a12c1ffca3 Reviewed-on: http://review.couchbase.org/112882 Reviewed-by: Sitaram Vemulapalli <sitaram.vemulapalli@couchbase.com> Tested-by: Bingjie Miao <bingjie.miao@couchbase.com>
- Loading branch information
1 parent
978d568
commit 13234e4
Showing
6 changed files
with
60 additions
and
7 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
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
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
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
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,35 @@ | ||
[ | ||
{ | ||
"testcase": "ANY clause NOT covered", | ||
"ignore": "index_id", | ||
"explain": { | ||
"disabled": false, | ||
"results": [ | ||
{ | ||
"present": true | ||
} | ||
], | ||
"statement": "SELECT true AS present FROM $explan AS p WHERE ANY v WITHIN p.plan.`~children` SATISFIES v.`#operator` LIKE 'IndexScan%' AND v.covers IS MISSING END" | ||
}, | ||
"statements":"SELECT RAW meta().id FROM shellTest WHERE type=\"doc\" AND owner=\"xyz\" AND ANY v IN Names SATISFIES (v.fname='John' AND v.lname ='Doe') END", | ||
"results": [ | ||
] | ||
}, | ||
{ | ||
"testcase": "ANY clause covered", | ||
"ignore": "index_id", | ||
"explain": { | ||
"disabled": false, | ||
"results": [ | ||
{ | ||
"present": true | ||
} | ||
], | ||
"statement": "SELECT true AS present FROM $explan AS p WHERE ANY v WITHIN p.plan.`~children` SATISFIES v.`#operator` LIKE 'IndexScan%' AND ARRAY_LENGTH(v.covers) > 0 END" | ||
}, | ||
"statements":"SELECT RAW meta().id FROM shellTest WHERE type=\"doc\" AND owner=\"xyz\" AND ANY v IN Names SATISFIES (v.fname='John') END", | ||
"results": [ | ||
] | ||
} | ||
] | ||
|
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