Skip to content

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

@tswast

Description

@tswast

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:

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

Metadata

Metadata

Assignees

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