From 58c789c23ae1fe84429ae6be3a21caa23e9b940d Mon Sep 17 00:00:00 2001 From: Chelsea Lin Date: Tue, 23 Jan 2024 20:07:46 +0000 Subject: [PATCH] fix: add pyarrow.large_strign to the _ARROW_SCALAR_IDS_TO_BQ map --- google/cloud/bigquery/_pyarrow_helpers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/google/cloud/bigquery/_pyarrow_helpers.py b/google/cloud/bigquery/_pyarrow_helpers.py index 7266e5e02..946743eaf 100644 --- a/google/cloud/bigquery/_pyarrow_helpers.py +++ b/google/cloud/bigquery/_pyarrow_helpers.py @@ -91,6 +91,7 @@ def pyarrow_timestamp(): pyarrow.date64().id: "DATETIME", # because millisecond resolution pyarrow.binary().id: "BYTES", pyarrow.string().id: "STRING", # also alias for pyarrow.utf8() + pyarrow.large_string().id: "STRING", # The exact scale and precision don't matter, see below. pyarrow.decimal128(38, scale=9).id: "NUMERIC", }