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

Missing GQL support #304

Closed
tseaver opened this issue Oct 28, 2014 · 23 comments
Closed

Missing GQL support #304

tseaver opened this issue Oct 28, 2014 · 23 comments
Assignees
Labels
api: datastore Issues related to the Datastore API. priority: p2 Moderately-important priority. Fix may not be included in next release. 🚨 This issue needs some love. type: question Request for information or clarification. Not an issue.

Comments

@tseaver
Copy link
Contributor

tseaver commented Oct 28, 2014

The protobuf spec for queries suggests that queries should support GQL, but that support is missing. Do we need to add support?

@tseaver tseaver added type: question Request for information or clarification. Not an issue. api: datastore Issues related to the Datastore API. labels Oct 28, 2014
@dhermes
Copy link
Contributor

dhermes commented Oct 28, 2014

ISTM that GQL is an artifact of days gone by, i.e. what people thought was useful when the datastore was initially created. Having it in the proto just allows continued support of existing apps which use GQL.

For me, explicitly not supporting GQL is a good thing, but I'm happy to support it if people think we should.

@silvolu
Copy link
Contributor

silvolu commented Oct 28, 2014

AFAIK GQL has never been on the roadmap.
@jgeewax, @beriberikix ?

@jgeewax
Copy link
Contributor

jgeewax commented Oct 28, 2014

👍 +1 to @dhermes -- I think we should not support it directly (at least not part of early milestones).

@silvolu silvolu closed this as completed Nov 3, 2014
@jgeewax
Copy link
Contributor

jgeewax commented Nov 3, 2014

Can we maybe keep this open and add it for a later milestone? @silvolu

@silvolu
Copy link
Contributor

silvolu commented Nov 3, 2014

Well, I closed it because I think we should not implement it.

@jgeewax
Copy link
Contributor

jgeewax commented Nov 3, 2014

I think the debate is open about whether we should eventually do this -- I certainly agree it shouldn't be done immediately...

@silvolu
Copy link
Contributor

silvolu commented Nov 3, 2014

Re-opening it, but looks like you're currently the only one in favor of doing it :)

@dhermes
Copy link
Contributor

dhermes commented Jan 12, 2015

Re-closing per discussion in meeting today with @jgeewax

@dhermes dhermes closed this as completed Jan 12, 2015
@jgeewax jgeewax modified the milestone: Datastore Stable Jan 30, 2015
@pcostell
Copy link
Contributor

Can you provide the rational for not providing GQL?

@jgeewax
Copy link
Contributor

jgeewax commented Jun 21, 2015

I think the logic was "we should encourage people to use the ORM-ish thing we put together" -- and if someone wants to send a GQL query... it shouldn't be impossible, but I don't think it's a good idea...

Any rationale for why we'd want to expose the two different ways @pcostell ?

@pcostell
Copy link
Contributor

Sometimes I feel that it's easier and cleaner to write a GQL query. More of an open question though -- if our client libraries aren't going to expose it, is it worth having in the Datastore API.

@jgeewax
Copy link
Contributor

jgeewax commented Jun 21, 2015

This actually is a great question... I don't know whether it's worthwhile -- and if it was, I'd expect it at a different endpoint ...

@dhermes
Copy link
Contributor

dhermes commented Jun 22, 2015

@pcostell is my original comment incorrect?

GQL is an artifact of days gone by, i.e. what people thought was useful when the datastore was initially created.

@pcostell
Copy link
Contributor

Yes, I believe that original comment is incorrect. I think we'll see some major changes in GQL over the next year which will make it more useful for customers.

Just as an FYI, GQL in Cloud Datastore was redesigned and isn't compatible with the GQL in the App Engine python SDKs. So when Cloud Datastore was introduced an explicit decision was made to provide GQL support even though it wouldn't be backwards compatible (thus not an artifact of initial Datastore).

/cc @Alfus

@dhermes
Copy link
Contributor

dhermes commented Jun 22, 2015

Gotcher, thanks. Re-opening.

We (maybe just me?) were under the impression that GQL was past its usefulness. If that isn't the case, we're happy to implement. Do you see a library implementing all of the associated nouns/verbs or just supporting text queries? (It seems the GqlQueryArg will require special support.)

@dhermes dhermes reopened this Jun 22, 2015
@pcostell
Copy link
Contributor

Datastore RunQueryRequest has a GqlQuery argument. This argument takes a string which is the entire query. GqlQueryArg is just used to fill into the string any parameters (by number or by name). So I could imagine an API that looks like:

GqlQuery("SELECT * FROM MyKind WHERE a = @1 OFFSET @cursor", "myAValue", cursor=a_cursor)

Note the *args for numbered parameters and **kwargs for named parameters. These can get sent directly (+ some translation to proto for the arguments) to Datastore.

@jgeewax
Copy link
Contributor

jgeewax commented Jun 23, 2015

The bigger concern for me was that we wanted to keep people focused on our abstraction rather than writing GQL, so at best this is a "low priority" item -- but if you disagree, let me know.

I think it'd be a bad idea to encourage people to build apps that rely on writing lots of GQL queries -- the same way we encourage people to use an ORM rather than write SQL queries.

@jgeewax
Copy link
Contributor

jgeewax commented Oct 22, 2015

Hi @Fkawala You should probably post this over on StackOverflow to get help since this is really about the Python client library code.

@jgeewax
Copy link
Contributor

jgeewax commented Oct 22, 2015

Let's open a new issue for this -- this thread really isn't the right spot.

@dhermes
Copy link
Contributor

dhermes commented Jan 1, 2016

Will go from v1beta2 to v1beta3, with the key distinction that in proto3 we can use a map for the named arguments.

I think we can make a subclass of datastore.Query and implement this pretty swiftly.

parthea added a commit that referenced this issue Jun 4, 2023
* chore: exclude requirements.txt file from renovate-bot

Source-Link: googleapis/synthtool@f58d313
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:7a40313731a7cb1454eef6b33d3446ebb121836738dc3ab3d2d3ded5268c35b6

* update constraints files

* fix(deps): require protobuf 3.20.2

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
parthea pushed a commit that referenced this issue Jun 4, 2023
* chore(deps): update all dependencies

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea added a commit that referenced this issue Jun 4, 2023
* chore(deps): update all dependencies

* update location for samples

Co-authored-by: Anthonios Partheniou <[email protected]>
parthea pushed a commit that referenced this issue Jun 4, 2023
* chore: Update gapic-generator-python to v1.8.2

PiperOrigin-RevId: 504289125

Source-Link: googleapis/googleapis@38a48a4

Source-Link: googleapis/googleapis-gen@b2dc226
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjJkYzIyNjYzZGJlNDdhOTcyYzhkOGMyZjhhNGRmMDEzZGFmZGNiYyJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this issue Jun 4, 2023
Source-Link: https://togithub.com/googleapis/synthtool/commit/25083af347468dd5f90f69627420f7d452b6c50e
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e6cbd61f1838d9ff6a31436dfc13717f372a7482a82fc1863ca954ec47bff8c8
parthea added a commit that referenced this issue Jun 4, 2023
parthea pushed a commit that referenced this issue Aug 15, 2023
* chore: Typo fixes

* docs(samples): Adds snippet for configuring new session parameters trigger transition.
parthea pushed a commit that referenced this issue Sep 20, 2023
- [ ] Regenerate this pull request now.

feat: support case insensitive match on search facets
feat: allow disabling spell check in search requests
feat: allow adding labels in search requests
feat: allow returning min/max values on search numeric facets
feat: allow using serving configs as an alias of placements
feat: allow enabling recommendation filtering on custom attributes
feat: return output BigQuery table on product / event export response
feat: allow skiping default branch protection when doing product full import
docs: keep the API doc up-to-date with recent changes

PiperOrigin-RevId: 464664497

Source-Link: googleapis/googleapis@c30c9cc

Source-Link: googleapis/googleapis-gen@a7fe8d6
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTdmZThkNjcyYjhjYmJhZGM1YWIzMjI1M2RlYTUwZTRjM2Q4ZTM5MCJ9

feat: support case insensitive match on search facets
feat: allow to return min/max values on search numeric facets
feat: allow to use serving configs as an alias of placements
docs: keep the API doc up-to-date with recent changes

PiperOrigin-RevId: 464560246

Source-Link: googleapis/googleapis@139f56e

Source-Link: googleapis/googleapis-gen@eca9b7e
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWNhOWI3ZWNiZGMyYzY0YzJkMGVjMmU2Njg4ZjYzNTNhZmYxNjJlZiJ9
parthea pushed a commit that referenced this issue Sep 20, 2023
…mplates/python_library/.kokoro (#304)

Source-Link: googleapis/synthtool@30bd01b
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:9bc5fa3b62b091f60614c08a7fb4fd1d3e1678e326f34dd66ce1eefb5dc3267b

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
vchudnov-g pushed a commit that referenced this issue Sep 20, 2023
parthea pushed a commit that referenced this issue Sep 22, 2023
* feat: add spark connection properties type

PiperOrigin-RevId: 517172721

Source-Link: googleapis/googleapis@98c303c

Source-Link: googleapis/googleapis-gen@384639d
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzg0NjM5ZDZhODcyNGJkNWRlMDMwN2RhNGI1MzM1ZWIyNGFhOTI5ZSJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea added a commit that referenced this issue Sep 22, 2023
* chore(deps): update all dependencies

* revert

Co-authored-by: Anthonios Partheniou <[email protected]>
parthea pushed a commit that referenced this issue Sep 22, 2023
Change region tag to make it unique. The previous tag was used in another create cluster file and caused problems with automation tools.
parthea pushed a commit that referenced this issue Sep 22, 2023
* feat: Updated Client Libraries for Cloud Scheduler

PiperOrigin-RevId: 495092454

Source-Link: googleapis/googleapis@3fbdb93

Source-Link: googleapis/googleapis-gen@ecf0b6c
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWNmMGI2YzkwZWU3NmU1M2UzOGNiOGVhNWY2MDQ3NWYyYjRlMzIwYyJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this issue Sep 22, 2023
Source-Link: googleapis/synthtool@50db768
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e09366bdf0fd9c8976592988390b24d53583dd9f002d476934da43725adbb978

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this issue Sep 22, 2023
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 459095142

Source-Link: googleapis/googleapis@4f1be99

Source-Link: googleapis/googleapis-gen@ae686d9
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWU2ODZkOWNkZTRmYzNlMzZkMGFjMDJlZmI4NjQzYjE1ODkwYzFlZCJ9


feat: add audience parameter

PiperOrigin-RevId: 456827138

Source-Link: googleapis/googleapis@23f1a15

Source-Link: googleapis/googleapis-gen@4075a85
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDA3NWE4NTE0ZjY3NjY5MWVjMTU2Njg4YTViYmYxODNhYTk4OTNjZSJ9
parthea added a commit that referenced this issue Oct 21, 2023
* chore(python): drop python 3.6

Source-Link: googleapis/synthtool@4f89b13
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e7bb19d47c13839fe8c147e50e02e8b6cf5da8edd1af8b82208cd6f66cc2829c

* add api_description to .repo-metadata.json

* require python 3.7+ in setup.py

* remove python 3.6 sample configs

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* exclude templated readme

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Maciej Strzelczyk <[email protected]>
Co-authored-by: Anthonios Partheniou <[email protected]>
parthea pushed a commit that referenced this issue Oct 21, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this issue Oct 21, 2023
Source-Link: googleapis/synthtool@0941ef3
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:2f90537dd7df70f6b663cd654b1fa5dee483cf6a4edcfd46072b2775be8a23ec

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this issue Oct 21, 2023
#304)

committer: parthea
PiperOrigin-RevId: 425964861

Source-Link: googleapis/googleapis@84b1a5a

Source-Link: googleapis/googleapis-gen@4fb761b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGZiNzYxYmJkODUwNmFjMTU2ZjQ5YmFjNWYxODMwNmFhOGViM2FhOCJ9

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this issue Oct 21, 2023
Source-Link: googleapis/synthtool@25083af
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e6cbd61f1838d9ff6a31436dfc13717f372a7482a82fc1863ca954ec47bff8c8

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this issue Oct 21, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this issue Oct 21, 2023
Source-Link: googleapis/synthtool@050953d
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:65e656411895bff71cffcae97246966460160028f253c2e45b7a25d805a5b142

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this issue Oct 22, 2023
Source-Link: googleapis/synthtool@69fda12
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:ae600f36b6bc972b368367b6f83a1d91ec2c82a4a116b383d67d547c56fe6de3

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this issue Oct 22, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: datastore Issues related to the Datastore API. priority: p2 Moderately-important priority. Fix may not be included in next release. 🚨 This issue needs some love. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

8 participants