-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matcher doesn't perform EXIST correctly on key with value of embedded map #90
Labels
Comments
nelio2k
added a commit
to nelio2k/gojsonsm
that referenced
this issue
May 2, 2019
nelio2k
added a commit
to nelio2k/gojsonsm
that referenced
this issue
May 3, 2019
nelio2k
added a commit
to nelio2k/gojsonsm
that referenced
this issue
May 7, 2019
nelio2k
added a commit
to nelio2k/gojsonsm
that referenced
this issue
May 10, 2019
nelio2k
added a commit
to nelio2k/gojsonsm
that referenced
this issue
May 13, 2019
nelio2k
added a commit
to nelio2k/gojsonsm
that referenced
this issue
May 13, 2019
nelio2k
added a commit
to nelio2k/gojsonsm
that referenced
this issue
May 13, 2019
… array Implemented obj and array fastval and comparisons
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given a data structure of:
A filter expression of "KEY EXISTS" fails, even though technically it does exist.
From what I can tell, matchExec sees KEY, and then goes ahead and does 2 more token gets, which are ":" followed by "{".
Something like this:
NEIL DEBUG testMap: map[[$%XDCRInternalKey*%$]:TestDocKey Key:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA [$%XDCRInternalMeta*%$]:map[AnotherXattr:TestValueString TestXattr:30]]$doc.[$ %XDCRInternalMeta*%$] EXISTS
NEIL DEBUG Expr:
NEIL DEBUG objStart going into objOrArray
NEIL DEBUG tokenData: "[$%XDCRInternalKey*%$]"
NEIL DEBUG autostep tokenData: :
NEIL DEBUG autostep2 tokenData: "TestDocKey"
NEIL DEBUG KeyString: [$%XDCRInternalKey*%$]
NEIL DEBUG tokenData: "Key"
NEIL DEBUG autostep tokenData: :
NEIL DEBUG autostep2 tokenData: "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
NEIL DEBUG KeyString: Key
NEIL DEBUG tokenData: "[$%XDCRInternalMeta*%$]"
NEIL DEBUG autostep tokenData: :
NEIL DEBUG autostep2 tokenData: {
NEIL DEBUG KeyString: [$%XDCRInternalMeta*%$]
NEIL DEBUG KeyString found with token: 1 tokenData: { keyElem: :ops
[0] @ exists @
So it sees that there is no operations for tokenData "{" and then bails, and the original [0] got lost.
The text was updated successfully, but these errors were encountered: