-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(reads): HasFieldValueKey searches for "$", not "_value" (#13138)
Storage converts references to _value in filter predicates to $. It then considers any predicate that does not reference $ to be a tag predicate. Tag predicates are used to construct series index cursors. This commit fixes a bug where field comparisons were being included in tag predicates due to the HasFieldValueKey function searching for comparison expressions referencing _value instead of $. Because all references to _value had already been replaced. An expression of the form '$ < 3000' would be considered a tag expression and therefore would be mistakenly included as a tag predicate. Fixes #13159.
- Loading branch information
jlapacik
authored
Apr 4, 2019
1 parent
c0bf96c
commit 2909927
Showing
2 changed files
with
88 additions
and
3 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