-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
range:index-keys-for-field with dynamic context only works correctly when wrapped inside dynamic function call #1226
Comments
olvidalo
changed the title
ft:index-keys with dynamic context only works correctly when wrapped inside dynamic function call
range:index-keys-for-field with dynamic context only works correctly when wrapped inside dynamic function call
Jan 15, 2017
did you test this with eXist-db 3.0RC2/develop ? |
Tested it with the current develop commit |
olvidalo
added a commit
to olvidalo/exist
that referenced
this issue
Jan 15, 2017
wolfgangmm
pushed a commit
that referenced
this issue
Jan 16, 2017
if the test is passing, this seems to be fixed? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
✅ returns all keys for
some-field
for the statically known documents.❌ will evaluate the function for each document in the collection instead of for the context document set at once, so it returns the keys multiple times for each document instead of once for the collection
✅ however, wrapping it inside a dynamic function will make it work
✅ also works
❌ does not work
It might have something to do with the expression dependencies being incorrectly set at one point down the stack (the evaluation path leading to the incorrect results seems to start in
PathExpr.eval()
when the expression's dependencies are determined) but as I have no idea what I'm actually talking about I'll leave it at that for the time being...There'll be a pull request with a test coming in shortly
The text was updated successfully, but these errors were encountered: