Skip to content

Commit

Permalink
MB-30249 make INCLUDE mandatory
Browse files Browse the repository at this point in the history
Change-Id: I1791159be7fe69f4ec2b6af72ae3c7ea3bf07be8
Reviewed-on: https://review.couchbase.org/c/query/+/175758
Tested-by: Sitaram Vemulapalli <sitaram.vemulapalli@couchbase.com>
Reviewed-by: Bingjie Miao <bingjie.miao@couchbase.com>
  • Loading branch information
sitaramv committed Jun 21, 2022
1 parent f979279 commit dc3d5e2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions parser/n1ql/n1ql.y
Expand Up @@ -2976,9 +2976,6 @@ ASC
DESC
{ $$ = algebra.IK_DESC }
|
MISSING
{ $$ = algebra.IK_MISSING }
|
INCLUDE MISSING
{ $$ = algebra.IK_MISSING }
;
Expand Down
2 changes: 1 addition & 1 deletion test/gsi/test_cases/lkmissing/lkmissing_test.go
Expand Up @@ -35,7 +35,7 @@ func TestLkMissing(t *testing.T) {
indexes := []string{
"CREATE PRIMARY INDEX %s ON %s;",
"CREATE INDEX %s ON %s(team, fname DESC, lname);",
"CREATE INDEX %s ON %s(ALL ARRAY FLATTEN_KEYS(c.id MISSING, c.type, c.default) FOR c IN contacts END, fname, lname, team)",
"CREATE INDEX %s ON %s(ALL ARRAY FLATTEN_KEYS(c.id INCLUDE MISSING, c.type, c.default) FOR c IN contacts END, fname, lname, team)",
"CREATE INDEX %s ON %s(ALL ARRAY FLATTEN_KEYS(c.id, c.type, c.default) FOR c IN contacts END, team)",
"CREATE INDEX %s ON %s(fname INCLUDE MISSING DESC, lname, team);",
"CREATE INDEX %s ON %s(fname INCLUDE MISSING DESC, lname, team, DISTINCT ARRAY FLATTEN_KEYS(v.id, v.type, v.default) FOR v IN contacts END);",
Expand Down

0 comments on commit dc3d5e2

Please sign in to comment.