-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BigQuery: Replace table.insert_data() with client.create_rows() #4151
Conversation
See | ||
https://cloud.google.com/bigquery/docs/reference/rest/v2/tabledata/insertAll | ||
|
||
:type table: :class:`~google.cloud.bigquery.client.Table` |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
||
for index, row in enumerate(rows): | ||
if isinstance(row, dict): | ||
row = table.row_from_mapping(row) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
* replaces table.insert_data() with client.create_rows() * client.create_rows() accepts list of dicts as rows parameter * adds system test for rows given as list of dictionaries to create_rows() * adds test for create_rows() with list of Rows * removes unused test function * client.create_rows() accepts TableReference
* replaces table.insert_data() with client.create_rows() * client.create_rows() accepts list of dicts as rows parameter * adds system test for rows given as list of dictionaries to create_rows() * adds test for create_rows() with list of Rows * removes unused test function * client.create_rows() accepts TableReference
No description provided.