From 61b5e4325fc4abbda390b2de5c4a76536ddf4e23 Mon Sep 17 00:00:00 2001 From: Nathan <148575555+nathan-artie@users.noreply.github.com> Date: Mon, 17 Jun 2024 21:59:46 -0700 Subject: [PATCH] [bigquery] Increase max size of requests to Storage Write API --- clients/bigquery/bigquery.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/bigquery/bigquery.go b/clients/bigquery/bigquery.go index 658c343e..f3392b5f 100644 --- a/clients/bigquery/bigquery.go +++ b/clients/bigquery/bigquery.go @@ -34,8 +34,8 @@ const ( describeNameCol = "column_name" describeTypeCol = "data_type" describeCommentCol = "description" - // Storage Write API is limited to 10 MB, let's start out conservative and use 80% of that. - maxRequestByteSize = 10_000_000 * .8 + // Storage Write API is limited to 10 MiB, subtract 50 KiB to account for request overhead. + maxRequestByteSize = (10 * 1024 * 1024) - (50 * 1024) ) type Store struct {