Skip to content
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

Datastore, ndb, and querying for existence of a repeated field in alias computation. #2093

Open
michaelkedar opened this issue Apr 9, 2024 · 0 comments

Comments

@michaelkedar
Copy link
Member

Making this issue to document this problem we've run into.

Additionally, queries with the OR operation de-duplicates results in ndb (see the note above the linked heading), which is why using != (i.e. < OR >) fixed the 'bug' in #1778

Currently, my solution is to replace osv.Bug.query(osv.Bug.aliases != '') with osv.Bug.query(ndb.OR(osv.Bug.aliases > '', osv.Bug.aliases < '')) to restore the original behaviour.

michaelkedar added a commit that referenced this issue Apr 9, 2024
Fixing issues with the `!=` operator, see #2093
CharlyReux pushed a commit to CharlyReux/osv.dev that referenced this issue May 1, 2024
Fixing issues with the `!=` operator, see google#2093
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant