Skip to content

Provide ignore_unknown_fields=True option in from_json and from_dict #153

@tswast

Description

@tswast

This blocking PR googleapis/python-bigquery#332 (and as a result the type to type_ change googleapis/python-bigquery#316 and googleapis/python-bigquery#328 with the new protobuf changes from the last year of updates from the BQML API -- though I might hack that one to ignore the type to type_ change)

I'd quite like to actually use proto-plus in google-cloud-bigquery ( googleapis/python-bigquery#332 ) rather than the current _pb workaround, but I can't without this change.

BigQuery very often launches new model types and model stats properties and updates the protos only after customers have used it in their projects. We need to be able to ignore unknown fields (and ideally unknown enums too, but that doesn't appear to be supported yet in the Python protobuf package protocolbuffers/protobuf#7392)

Metadata

Metadata

Labels

priority: p2Moderately-important priority. 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