Skip to content

Commit 0f08e9a

Browse files
aribrayparthea
andauthored
docs: add info about streaming quota limits to insert_rows* methods (#1409)
* docs: add information about streaming quota limits (413: Payload Too Large) Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent 4e6cc67 commit 0f08e9a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

google/cloud/bigquery/client.py

+22
Original file line numberDiff line numberDiff line change
@@ -3358,6 +3358,14 @@ def insert_rows(
33583358
See
33593359
https://cloud.google.com/bigquery/docs/reference/rest/v2/tabledata/insertAll
33603360
3361+
BigQuery will reject insertAll payloads that exceed a defined limit (10MB).
3362+
Additionally, if a payload vastly exceeds this limit, the request is rejected
3363+
by the intermediate architecture, which returns a 413 (Payload Too Large) status code.
3364+
3365+
3366+
See
3367+
https://cloud.google.com/bigquery/quotas#streaming_inserts
3368+
33613369
Args:
33623370
table (Union[ \
33633371
google.cloud.bigquery.table.Table, \
@@ -3424,6 +3432,13 @@ def insert_rows_from_dataframe(
34243432
) -> Sequence[Sequence[dict]]:
34253433
"""Insert rows into a table from a dataframe via the streaming API.
34263434
3435+
BigQuery will reject insertAll payloads that exceed a defined limit (10MB).
3436+
Additionally, if a payload vastly exceeds this limit, the request is rejected
3437+
by the intermediate architecture, which returns a 413 (Payload Too Large) status code.
3438+
3439+
See
3440+
https://cloud.google.com/bigquery/quotas#streaming_inserts
3441+
34273442
Args:
34283443
table (Union[ \
34293444
google.cloud.bigquery.table.Table, \
@@ -3485,6 +3500,13 @@ def insert_rows_json(
34853500
See
34863501
https://cloud.google.com/bigquery/docs/reference/rest/v2/tabledata/insertAll
34873502
3503+
BigQuery will reject insertAll payloads that exceed a defined limit (10MB).
3504+
Additionally, if a payload vastly exceeds this limit, the request is rejected
3505+
by the intermediate architecture, which returns a 413 (Payload Too Large) status code.
3506+
3507+
See
3508+
https://cloud.google.com/bigquery/quotas#streaming_inserts
3509+
34883510
Args:
34893511
table (Union[ \
34903512
google.cloud.bigquery.table.Table \

0 commit comments

Comments
 (0)