From e2132eb500a6774d7bef727fbda739222df730a9 Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Thu, 17 Feb 2022 10:57:47 -0600 Subject: [PATCH 1/3] deps: require google-cloud-bigquery-storage to avoid performance warning The wrapped DB-API uses google-cloud-bigquery-storage to download query results by default. It raises a warning and falls back to the REST API if google-cloud-bigquery-storage is not installed. deps: allow google-cloud-bigquery version 3.x --- setup.py | 3 ++- testing/constraints-3.6.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4da104e7..caf5ca87 100644 --- a/setup.py +++ b/setup.py @@ -84,7 +84,8 @@ def readme(): # Until this issue is closed # https://github.com/googleapis/google-cloud-python/issues/10566 "google-auth>=1.25.0,<3.0.0dev", # Work around pip wack. - "google-cloud-bigquery>=2.25.2,<3.0.0dev", + "google-cloud-bigquery>=2.25.2,<4.0.0dev", + "google-cloud-bigquery-storage>=2.0.0,<3.0.0dev", # Temporarily set maximimum sqlalchemy to a known-working version while # we debug failing compliance tests. See: # https://github.com/googleapis/python-bigquery-sqlalchemy/issues/386 diff --git a/testing/constraints-3.6.txt b/testing/constraints-3.6.txt index 60421130..9239ca7b 100644 --- a/testing/constraints-3.6.txt +++ b/testing/constraints-3.6.txt @@ -7,4 +7,5 @@ sqlalchemy==1.2.0 google-auth==1.25.0 google-cloud-bigquery==2.25.2 +google-cloud-bigquery-storage==2.0.0 google-api-core==1.30.0 From 9641d03f8b6a1187a055d2943a21d707e9b56a4a Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Thu, 17 Feb 2022 15:08:40 -0600 Subject: [PATCH 2/3] include pyarrow --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index caf5ca87..c4b36154 100644 --- a/setup.py +++ b/setup.py @@ -86,6 +86,7 @@ def readme(): "google-auth>=1.25.0,<3.0.0dev", # Work around pip wack. "google-cloud-bigquery>=2.25.2,<4.0.0dev", "google-cloud-bigquery-storage>=2.0.0,<3.0.0dev", + "pyarrow>=3.0.0,<7.0dev", # Temporarily set maximimum sqlalchemy to a known-working version while # we debug failing compliance tests. See: # https://github.com/googleapis/python-bigquery-sqlalchemy/issues/386 From ff3ed1e8aa97affb1a004bca23263a5952b452fd Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Thu, 17 Feb 2022 15:09:46 -0600 Subject: [PATCH 3/3] include pyarrow --- testing/constraints-3.6.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/testing/constraints-3.6.txt b/testing/constraints-3.6.txt index 9239ca7b..3a056dc3 100644 --- a/testing/constraints-3.6.txt +++ b/testing/constraints-3.6.txt @@ -9,3 +9,4 @@ google-auth==1.25.0 google-cloud-bigquery==2.25.2 google-cloud-bigquery-storage==2.0.0 google-api-core==1.30.0 +pyarrow==3.0.0