forked from hypermodeinc/dgraph
-
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(worker): fix between filter for non indexed predicates (hypermode…
…inc#6715) Fixes DGRAPH-2528. Fixes DGRAPH-2544. This PR extends the support for the `between` filter on non-indexed predicates so that it could be used outside the root also. For example, for the given schema ``` type CarModel { make model year } model : string @index(term) @lang . make : string @index(term) . year : int . ``` The below query uses between filter on `year` predicate which is non-indexed, should be valid. ``` queryCareModel(func: type(CarModel)) @filter(between(year,2009,2010)){ make model year } ``` This PR also fixes the `eq` filter for more than one argument on the non-indexed predicate which earlier used to compare with just the first of the given arguments for the `eq` filter. For eg the below query was not giving proper results earlier. ``` queryCarModel(func: type(CarModel)) @filter(eq(year,2008,2009)){ make model year } ```
- Loading branch information
1 parent
49ebecd
commit 3d6abdf
Showing
3 changed files
with
128 additions
and
5 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