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 — ENH: Read BigQuery query table without a query · Issue #266 · googleapis/python-bigquery-pandas

This repository was archived by the owner on Sep 2, 2026. It is now read-only.
This repository was archived by the owner on Sep 2, 2026. It is now read-only.

ENH: Read BigQuery query table without a query #266

Copy link
Copy link
Closed
#443
Closed
ENH: Read BigQuery query table without a query#266
#443
Copy link
Assignees
tswast
Labels
api: bigqueryIssues related to the googleapis/python-bigquery-pandas API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@tswast
tswast
opened on Mar 28, 2019
Issue body actions

It can cost a lot to run a SELECT * FROM my_table query, and yet from an API perspective, this query is completely unnecessary, as one can list the rows from the table directly for free with tabledata.list. I propose

df = pandas_gbq.read_gbq("my-project.my_dataset.my_table")

which will download a table directly (using bigquery_client.list_rows().to_dataframe()). Since all queries must contain some kind of whitespace and table IDs cannot contain any whitespace, we can use that to disambiguate query versus table ID.

Activity

  1. tswast
    added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on Mar 28, 2019
  2. max-sixty commented on Mar 28, 2019

    @max-sixty
    max-sixty
    on Mar 28, 2019
    Contributor
    More actions

    I didn't know about that - I had thought you could run a preview, but not download a whole table that way.

    Not opposed to it. I'm not sure it's that helpful given than a large enough table to be expensive to query is also impractical to download over JSON into memory.
    But that's not an argument to not have the functionality, am +0 !

  3. product-auto-label
    added
    api: bigqueryIssues related to the googleapis/python-bigquery-pandas API.
    on Jul 17, 2021
  4. tswast
    self-assigned this
    on Dec 6, 2021
  5. tswast commented on Dec 6, 2021

    @tswast
    tswast
    on Dec 6, 2021
    ContributorAuthor
    More actions

    I think this feature would help with testing #365, as I realized I'm using the google-cloud-bigquery bigquery_client.list_rows(table_id).to_dataframe(...) pattern in #442 which doesn't actually test the full round trip via pandas-gbq.

  6. gcf-merge-on-green
    closed this as completedin #443on Dec 22, 2021
  7. gcf-merge-on-green
    added a commit that references this issue on Dec 22, 2021

    feat: accepts a table ID, which downloads the table without a query (#…

    This issue will close once commit bf0e863 is merged into the 'main' branch.
    bf0e863
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @tswast
    tswast

Labels

api: bigqueryIssues related to the googleapis/python-bigquery-pandas API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

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.