-
Notifications
You must be signed in to change notification settings - Fork 871
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
CONTAINSANY/CONTAINSALL not consistent with IN when using LET variable in filtering #8961
Comments
I tried this as well, because I'm having difficulty with for instance:
returns 2 parents, but
returns nothing, but I would expect it to return just one parent that has BOTH 'bob' and 'alice' as children. However, if I just use the array of @rids like this:
a single parent is returned. |
That's amazing! Thx. How do I get a milestone build? |
Hi @grimace you can find the snapshot here https://oss.sonatype.org/content/repositories/snapshots/com/orientechnologies/orientdb-community/3.0.25-SNAPSHOT/ (for testing) The official hotfix will be released in a few days Thanks Luigi |
OrientDB Version: 3.0.22
Java Version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
OS: centos07
Expected behavior
I expected to need to expand for all filtering comparison against subqueries or none, rather than having the behaviour depend on the operator being used
Actual behavior
I am not sure if this behaviour is intended or not, but when I use a subquery let variable in filtering the parent query, I have to use expand to make CONTAINSANY/CONTAINSALL work but not when using IN. Why are they treated differently? How do I know when I need to expand?
Steps to reproduce
initial setup
Then when I use a subquery to filter against the link property using IN it works without expanding
But when I try something similar for the linkset property it fails silent and nothing is returned
However if I add expand then the above works as expected
I am finding it confusing to know when I need to use expand
The text was updated successfully, but these errors were encountered: