Skip to content

BigQuery: insert_rows() fails when a repeated field is missing #9602

@danych2

Description

@danych2

Using the method insert_rows to insert a row missing a REPEATED field returns an error. Repeated fields should be nullable by default, so it should not matter if a repeated field is not provided.
The method insert_rows_json, which insert_rows uses to make the API call seems to work fine.

Environment details

Python 2.7.15+
google-cloud-bigquery 1.21.0

Steps to reproduce

  • Create a table with a repeated field
  • Insert a row into the table using insert_rows, passing a dict where the repeated field key-value pair is missing.

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the BigQuery API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions