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 — BigQuery Storage API integrations should accept either v1beta1 or v1 client · Issue #84 · googleapis/python-bigquery

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

BigQuery Storage API integrations should accept either v1beta1 or v1 client #84

Copy link
Copy link
Closed
#55
Closed
BigQuery Storage API integrations should accept either v1beta1 or v1 client#84
#55
Copy link
Assignees
plamut
Labels
api: bigqueryIssues related to the googleapis/python-bigquery API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@tswast
tswast
opened on Apr 24, 2020
Issue body actions

I notice that the v1beta1 API is still used.

python-bigquery/google/cloud/bigquery/_pandas_helpers.py

Lines 577 to 587 in 952164b

def _download_table_bqstorage_stream(
download_state, bqstorage_client, session, stream, worker_queue, page_to_item
):
position = bigquery_storage_v1beta1.types.StreamPosition(stream=stream)
rowstream = bqstorage_client.read_rows(position).rows(session)
for page in rowstream.pages:
if download_state.done:
return
item = page_to_item(page)
worker_queue.put(item)

This is good, as it keeps packages such as pandas-gbq from breaking, but shouldn't we start thinking about migrating folks to the v1 endpoint? To do that without causing too much disruption, the to_dataframe, magics, and DB-API integrations should accept either v1beta1 or v1 clients for an extended period of time.

Activity

  1. product-auto-label
    added
    api: bigqueryIssues related to the googleapis/python-bigquery API.
    on Apr 24, 2020
  2. yoshi-automation
    added
    triage meI really want to be triaged.
    on Apr 27, 2020
  3. plamut commented on Apr 28, 2020

    @plamut
    plamut
    on Apr 28, 2020
    Contributor
    More actions

    @tswast Now that the BQ Storage client is stable, #55 will start using it as a default, and also migrate to v1 stable from v1beta1.

    If this would indeed represent to big a disruption, the PR needs to be adjusted to support both Storage client versions. Possibly with a warning if beta client is used?

    Also feel free to bring this point up on the linked PR, if you have time, as this feature request directly affects it, thanks!

  4. plamut
    added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    and removed
    triage meI really want to be triaged.
    on Apr 28, 2020
  5. tswast commented on Apr 28, 2020

    @tswast
    tswast
    on Apr 28, 2020
    ContributorAuthor
    More actions

    Yes, that would be a very big disruption. Definitely a breaking change, as it would break pandas-gbq among others.

  6. plamut commented on Apr 28, 2020

    @plamut
    plamut
    on Apr 28, 2020
    Contributor
    More actions

    Noted. We will add this then, and branch on the BQ Storage client type (and if v1beta1 is passed, the old logic for constructing the session will be used).

  7. meredithslota
    assigned
    plamut
    on Apr 29, 2020
  8. plamut
    closed this as completedin #55on Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @plamut
    plamut

Labels

api: bigqueryIssues related to the googleapis/python-bigquery 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.