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 — Allow enabling/disabling the storage API on a per-connection basis · Issue #1920 · 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.

Allow enabling/disabling the storage API on a per-connection basis #1920

Copy link
Copy link
Closed
#1945
Closed
Allow enabling/disabling the storage API on a per-connection basis#1920
#1945
Copy link
Assignees
Linchin
Labels
api: bigqueryIssues related to the googleapis/python-bigquery API.priority: p3Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@galloviolet
galloviolet
opened on May 15, 2024
Issue body actions

In #16, support was added for the BigQuery storage API in the form of a bqstorage_client which is passed to or created by connect(). Yet there is no way, other than installing or uninstalling the storage API itself, to toggle whether the storage API is enabled/disabled.

Since use of the storage API does affect pricing, it would be preferable to enable or disable on a per-connection basis, perhaps as a use_storage_api: bool parameter on connect(). This way, callers could choose at will whether to use the storage API without having to change the Python environment the code is running in.

As a hack to workaround this issue, I attempted calling connect passing a normal Client object rather than a BigQueryReadClient in the bqstorage_client parameter, but this does not create a functioning usable connection.

Reacted by Tyler BoddySpargo

Activity

  1. product-auto-label
    added
    api: bigqueryIssues related to the googleapis/python-bigquery API.
    on May 15, 2024
  2. blunderbuss-gcf
    assigned
    shollyman
    on May 15, 2024
  3. Linchin
    added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    priority: p3Desirable enhancement or fix. May not be included in next release.
    on May 20, 2024
  4. tswast commented on May 21, 2024

    @tswast
    tswast
    on May 21, 2024
    Contributor
    More actions

    Since use of the storage API does affect pricing,

    Not really true when we're talking about query results. My understanding is that BQ Storage Reads are free from anonymous query result tables.

  5. tswast commented on May 21, 2024

    @tswast
    tswast
    on May 21, 2024
    Contributor
    More actions

    That said, there could be other reasons not to use this. In to_dataframe, one can set create_bqstorage_client=False to disable the automatic behavior, for example.

  6. Linchin
    assigned
    Linchin
    and unassigned
    shollyman
    on Jun 4, 2024
  7. Linchin
    closed this as completedin #1945on Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @Linchin
    Linchin

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.priority: p3Desirable enhancement or fix. May not be included in next release.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.