-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Comments
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. |
AFAIK GQL has never been on the roadmap. |
👍 +1 to @dhermes -- I think we should not support it directly (at least not part of early milestones). |
Can we maybe keep this open and add it for a later milestone? @silvolu |
Well, I closed it because I think we should not implement it. |
I think the debate is open about whether we should eventually do this -- I certainly agree it shouldn't be done immediately... |
Re-opening it, but looks like you're currently the only one in favor of doing it :) |
Re-closing per discussion in meeting today with @jgeewax |
Can you provide the rational for not providing GQL? |
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 ? |
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. |
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 ... |
@pcostell is my original comment incorrect?
|
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 |
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 |
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:
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. |
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. |
Hi @Fkawala You should probably post this over on StackOverflow to get help since this is really about the Python client library code. |
Let's open a new issue for this -- this thread really isn't the right spot. |
* 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]>
* 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>
* chore(deps): update all dependencies * update location for samples Co-authored-by: Anthonios Partheniou <[email protected]>
* 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>
Source-Link: https://togithub.com/googleapis/synthtool/commit/25083af347468dd5f90f69627420f7d452b6c50e Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e6cbd61f1838d9ff6a31436dfc13717f372a7482a82fc1863ca954ec47bff8c8
Co-authored-by: Anthonios Partheniou <[email protected]>
* chore: Typo fixes * docs(samples): Adds snippet for configuring new session parameters trigger transition.
- [ ] 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
…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>
PiperOrigin-RevId: 375489925 Source-Link: googleapis/googleapis@a185afb Source-Link: googleapis/googleapis-gen@c3b8415
🤖 I have created a release \*beep\* \*boop\* --- ## [2.4.0](https://www.github.com/googleapis/python-dialogflow/compare/v2.3.0...v2.4.0) (2021-05-25) ### Features * add a field to indicate whether slot filling is cancelled ([#304](https://www.github.com/googleapis/python-dialogflow/issues/304)) ([3343504](https://www.github.com/googleapis/python-dialogflow/commit/33435048c05a8897297032415ccfefd171140529)) * **v2beta1:** add a field to indicate whether slot filling is cancelled ([#306](https://www.github.com/googleapis/python-dialogflow/issues/306)) ([05be019](https://www.github.com/googleapis/python-dialogflow/commit/05be0196ff2998278f174ba076498327180a63f9)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
* 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>
* chore(deps): update all dependencies * revert Co-authored-by: Anthonios Partheniou <[email protected]>
Change region tag to make it unique. The previous tag was used in another create cluster file and caused problems with automation tools.
* 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>
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>
- [ ] 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
* 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]>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
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>
#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>
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>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
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>
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>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
The protobuf spec for queries suggests that queries should support GQL, but that support is missing. Do we need to add support?
The text was updated successfully, but these errors were encountered: