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 — [Breaking Change] Remove `google.cloud.bigquery_v2` directory and related code generation · Issue #814 · 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.

[Breaking Change] Remove google.cloud.bigquery_v2 directory and related code generation #814

Copy link
Copy link
Closed
Closed
[Breaking Change] Remove google.cloud.bigquery_v2 directory and related code generation#814
Copy link
Assignees
plamut
Labels
api: bigqueryIssues related to the googleapis/python-bigquery API.semver: majorHint for users that this is an API breaking change.type: processA process-related concern. May include testing, release, or the like.

Description

@tswast
tswast
opened on Jul 26, 2021
Issue body actions

The google.cloud.bigquery_v2 modules are frequently out-of-date. This primarily affect the usability of BigQuery ML.

Since BigQuery is a REST API, protobuf changes must be synced manually in internal code repo before they can be published to https://github.com/googleapis/googleapis

In the years since we first introduced google.cloud.bigquery_v2, we've seen that BigQuery ML adds model stats and model types much more frequently than the protobuf changes are actually published.

We've worked around this by:

  • I and @shollyman (mostly @shollyman lately) republish the protos when a customer has a problem, such as in list_models() of dataset containing a BigQuery AutoML models errors with Invalid enum value AUTOML_REGRESSOR for enum type #293
  • Avoiding the worst exceptions when an enum or property isn't present, such as in Make Model constructor robust against new model types #334

Solution

  • Remove google.cloud.bigquery_v2 modules
  • Update owlbot config to stop generating "client"
  • In the BigQuery ML classes, whereever we were returning protobuf object, return the JSON-parsed API response, instead.
    • Complex types become dictionaries.
    • Enums become strings.
  • In the routines logic, create manual wrappers and enums where needed.

Supersedes #319

Activity

  1. product-auto-label
    added
    api: bigqueryIssues related to the googleapis/python-bigquery API.
    on Jul 26, 2021
  2. tswast
    assigned
    plamut
    on Jul 26, 2021
  3. tswast
    added
    type: processA process-related concern. May include testing, release, or the like.
    on Jul 26, 2021
  4. plamut
    added
    semver: majorHint for users that this is an API breaking change.
    on Jul 27, 2021
  5. gcf-merge-on-green
    added a commit that references this issue on Sep 27, 2021

    chore!: remove google.cloud.bigquery_v2 code (#855)

    This issue will close once commit a7842b6 is merged into the 'main' branch.
    a7842b6
  6. plamut commented on Oct 1, 2021

    @plamut
    plamut
    on Oct 1, 2021
    Contributor
    More actions

    Done in #855. The issue was probably not closed automatically, because the PR was merged into the v3 branch.

  7. plamut
    closed this as completedon Oct 1, 2021
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.semver: majorHint for users that this is an API breaking change.type: processA process-related concern. May include testing, release, or the like.

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.