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: keys_only query should return Keys? · Issue #839 · googleapis/google-cloud-python

datastore: keys_only query should return Keys? #839

New issue
Copy link
New issue
Copy link
Closed
Closed
datastore: keys_only query should return Keys?#839
Copy link
Assignees
dhermes
Labels
api: datastoreIssues related to the Datastore API.
Milestone
Datastore Future

Description

@pdknsk
pdknsk
opened on Apr 19, 2015
Issue body actions

I don't know the answer to that question, but I'd like to suggest so. It's what ndb does. Right now, gcloud-python returns a key-only Entity. It's a minor issue either way as the key is just one property away.

Activity

  1. pdknsk
    changed the title [-]datastore: key_only query should return Keys?[/-] [+]datastore: keys_only query should return Keys?[/+] on Apr 19, 2015
  2. dhermes
    added
    api: datastoreIssues related to the Datastore API.
    on Apr 19, 2015
  3. dhermes
    added this to the Datastore Future milestone on Apr 19, 2015
  4. tseaver commented on Apr 23, 2015

    @tseaver
    tseaver
    on Apr 23, 2015
    Contributor
    More actions

    -1 for having the return type vary based on arguments: "queries return entities" is much easier to reason about than "queries return entities, except when they return keys."

  5. dhermes commented on Jun 18, 2015

    @dhermes
    dhermes
    on Jun 18, 2015
    Contributor
    More actions

    I'm -1 too.

    @pdknsk WDYT about a separate method for keys only queries just like datastore.get and datastore.get_multi?

    Also keep in mind #557 will be resolved someday.

  6. theacodes commented on Jun 18, 2015

    @theacodes
    theacodes
    on Jun 18, 2015
    Contributor
    More actions

    -1 as well, it was surprising at first because I was used to ndb, but really, keys only is a projection and it definitely makes sense to have query/get/get_multi always return entities.

  7. dhermes commented on Jun 18, 2015

    @dhermes
    dhermes
    on Jun 18, 2015
    Contributor
    More actions

    Will re-open if @pdknsk weighs in.

  8. dhermes
    closed this as completedon Jun 18, 2015
  9. JustinBeckwith
    assigned
    dhermes
    on Feb 1, 2021
  10. parthea
    added a commit that references this issue on Oct 21, 2023

    chore: move samples from python-docs-sample (#45)

    d369a34
  11. parthea
    added a commit that references this issue on Aug 21, 2025

    fix: Disable universe-domain validation (#839)

    33be2b1
  12. parthea
    added a commit that references this issue on Sep 16, 2025

    fix: Disable universe-domain validation (#839)

    4ced954
  13. parthea
    added 5 commits that reference this issue on Nov 24, 2025

    chore: release 0.43.3 (#839)

    dac2752

    fix: Avoid aliasing known CTEs (#839)

    62db7e0

    chore(deps): update dependency google-cloud-bigquery to v3.16.0 (#839)

    36da59b

    chore(nox): Remove Py2-only condition (#839)

    bd69157

    chore(deps): update dependency google-cloud-bigquery to v3.16.0 (#839)

    129d16e
  14. parthea
    added 5 commits that reference this issue on Mar 2, 2026

    chore(deps): update dependency mock to v5.0.1 (#839)

    143adf5

    chore(deps): update dependency google-auth-oauthlib to v0.4.5 (#839)

    a8630e0

    chore(deps): update actions/checkout action to v6 (#839)

    bfab248

    chore(deps): update dependency google-cloud-pubsub to v2.13.5 (#839)

    729c956

    fix(deps): allow protobuf 3.19.5 (#839)

    505ef82
  15. parthea
    added a commit that references this issue on Sep 8, 2026

    docs: migrate code from googleapis/python-bigquery (#18303)

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

Metadata

Metadata

Assignees

  • @dhermes
    dhermes

Labels

api: datastoreIssues related to the Datastore API.

Type

No type

Projects

No projects

    Milestone

    • Datastore Future

    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.