GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Datastore - Support for OR predicate in GQL/Query Filters · Issue #1364 · googleapis/google-cloud-java

Datastore - Support for OR predicate in GQL/Query Filters  #1364

New issue
Copy link
New issue
Copy link
Closed
Closed
Datastore - Support for OR predicate in GQL/Query Filters #1364
Copy link
Assignees
sai-pullabhotla
Labels
api: datastoreIssues related to the Datastore API.

Description

@sai-pullabhotla
sai-pullabhotla
opened on Nov 2, 2016
Issue body actions

Is there a reason why a datastore query (GQL or otherwise) does not allow OR predicate? I noticed that the AppEngine Datastore supports this -

(https://cloud.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Query.CompositeFilter).

I was under the impression that Cloud Datastore is similar (or same) as AppEngine Datastore.

In any case, is this some thing that can be supported?

Activity

  1. mziccard commented on Nov 2, 2016

    @mziccard
    mziccard
    on Nov 2, 2016
    Contributor
    More actions

    @aozarov @ajkannan Any reason we don't support OR?

  2. mziccard
    added
    api: datastoreIssues related to the Datastore API.
    on Nov 2, 2016
  3. ajkannan commented on Nov 2, 2016

    @ajkannan
    ajkannan
    on Nov 2, 2016
    More actions

    It looks like "OR" isn't supported in Cloud Datastore yet.

    Looking at the current cloud docs and previous cloud docs, I don't see "or" mentioned under composite filter operators, just "and". Also, this page and this page (in the "where" row) affirm that only "and" is supported for now.

    /cc @eddavisson are there plans to support "OR" in Cloud Datastore?

  4. sai-pullabhotla commented on Nov 2, 2016

    @sai-pullabhotla
    sai-pullabhotla
    on Nov 2, 2016
    Author
    More actions

    @ajkannan - This page clearly states that -

    Restrictions on queries

    The nature of the index query mechanism imposes certain restrictions on what a query can do. Cloud Datastore queries do not support substring matches, case-insensitive matches, or so-called full-text search. The NOT, OR, and != operators are not natively supported, but some client libraries may add support on top of Cloud Datastore.

    I wonder if any of the client libraries (possibly Python or the AppEngine Java API) do this, and if so, how do they do it? Something to look into.

  5. mziccard commented on Nov 3, 2016

    @mziccard
    mziccard
    on Nov 3, 2016
    Contributor
    More actions

    @sai-pullabhotla I can confirm that OR is not supported natively. And yes, some clients (AppEngine SDK and python ndb) support OR by issuing multiple queries and then merging the results. Such a feature is out of the scope of our client which is meant to be a java-idiomatic but thin layer on top of Datastore API. AFAIK none of the other google-cloud-* libraries supports OR.

  6. sai-pullabhotla commented on Nov 3, 2016

    @sai-pullabhotla
    sai-pullabhotla
    on Nov 3, 2016
    Author
    More actions

    @mziccard - Thanks. I just wanted to make sure if this is something the Datastore supports or not. Now we know the answer. I'm closing this.

  7. sai-pullabhotla
    closed this as completedon Nov 3, 2016
  8. JustinBeckwith
    assigned
    sai-pullabhotla
    on Feb 1, 2021
  9. meltsufin
    added a commit that references this issue on Dec 22, 2025

    fix: Remove org.jspecify dependency (#1364)

    8138f46
  10. chingor13
    added a commit that references this issue on Jan 6, 2026

    chore(main): release 0.131.11-alpha (#1364)

    aea664b
  11. chingor13
    added a commit that references this issue on Jan 22, 2026

    chore: add new types ExplainOptions, ExplainMetrics, PlanSummary, Exe…

    89c45dc
  12. chingor13
    added a commit that references this issue on Feb 24, 2026

    fix: add missing copyright header (#1364)

    a24e563
  13. suztomo
    added a commit that references this issue on Mar 11, 2026

    fix: Remove org.jspecify dependency (googleapis#1364)

    5b3f3a8
  14. chingor13
    added a commit that references this issue on Mar 12, 2026

    fix: add missing copyright header (#1364)

    3509473
  15. suztomo
    added a commit that references this issue on Mar 23, 2026

    chore(main): release 2.13.3-SNAPSHOT (googleapis#1364)

    a799596
  16. suztomo
    added a commit that references this issue on Mar 30, 2026

    chore(deps): update dependency com.google.cloud:libraries-bom to v26.…

    cee6902
  17. lqiu96
    added a commit that references this issue on Apr 1, 2026

    chore(deps): update dependency com.google.cloud:libraries-bom to v26.…

    ea61bed
  18. meltsufin
    added 2 commits that reference this issue on Apr 29, 2026

    chore(deps): Update gapic-generator-java to 2.10.1 and gax-java to 2.…

    70df54c

    chore(deps): Update gapic-generator-java to 2.10.1 and gax-java to 2.…

    2f3b0c0
  19. benjaminp
    added 3 commits that reference this issue on Jul 13, 2026

    fix: reset a measure map everytime the stats are recorded (googleapis…

    7ccdc3d

    chore(main): release 2.11.1 (googleapis#1365)

    2c79064

    feat: Support Cloud Bigtable Changestream (googleapis#1569)

    99071f0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @sai-pullabhotla
    sai-pullabhotla

Labels

api: datastoreIssues related to the Datastore API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.