-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Wrong result when using x == NONE {y} #7862
Comments
Hi @jd565
We can read |
@ironage Thanks for taking a look.
that is, I want to find all the profiles without member id 100, expecting this to return just the members with id 101 and 102, but my test fails with the following:
Suggesting that the raw predicate is not doing what you have outlined in your message above. If I have multiple items inside the NONE, like |
@jd565 thanks for the clarification. I wasn't able to reproduce, until I add an index to test property (this applies to you if member_id is a primary key or if you have added an index manually). I submitted a fix in realm/realm-core#7333, but until that lands, I'd suggest that you change your query to be |
How frequently does the bug occur?
Always
Description
Am writing queries using the RQL syntax, and a couple of our queries are filtering out items that don't exist in a list. However, if we put in a list of a single item then the wrong item is selected.
If I have ids 100, 101 and 102 in realm, and run this passing in
listOf(100, 101)
, then it correctly deletes 100 and 101 leaving 102, but if I pass inlistOf(100)
, then it does not delete the item with id 100. Have also tried hardcoding the ids in my test"memberId == NONE {100}"
and see the same behaviour.I am new to RQL so could be doing something wrong but this seems like incorrect behaviour to me.
Stacktrace & log output
No response
Can you reproduce the bug?
Always
Reproduction Steps
No response
Version
10.17.0
What Atlas App Services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
Android all versions
Build environment
Android Studio version: Iguana Canary 18
Android Build Tools version: 8.1.2
Gradle version: 8.4
The text was updated successfully, but these errors were encountered: