-
Notifications
You must be signed in to change notification settings - Fork 1.7k
BigQuery insert_data() fails with record type columns (nested objects) #2951
Copy link
Copy link
Closed
Labels
api: bigqueryIssues related to the BigQuery API.Issues related to the BigQuery API.priority: p0Highest priority. Critical issue. P0 implies highest priority.Highest priority. Critical issue. P0 implies highest priority.release blockingRequired feature/issue must be fixed prior to next release.Required feature/issue must be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Metadata
Metadata
Assignees
Labels
api: bigqueryIssues related to the BigQuery API.Issues related to the BigQuery API.priority: p0Highest priority. Critical issue. P0 implies highest priority.Highest priority. Critical issue. P0 implies highest priority.release blockingRequired feature/issue must be fixed prior to next release.Required feature/issue must be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
BigQuery tabledata.insertAll supports inserting rows with columns that take record types (nested objects).
A customer reports that
Example in the API explorer, with the following table schema:
Try it out in the API Explorer for bigquery.tabledata.insertAll. Enter the following for the request body (after creating a table with the same schema). You need to switch the editor to free-form mode
I can verify that this works with a SQL query.
It is not clear from the docs how to do a similar call from our client libraries (and it likely isn't possible).