From 04098c7ce348c410773ad336a1389e60a4ff986f Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Wed, 27 Mar 2024 22:07:11 -0400 Subject: [PATCH] Add `pandas` extra for `google-cloud-bigquery` to pick up missing `pyarrow` (#1153) * Add `pandas` extra for `google-cloud-bigquery` to pick up missing `pyarrow` (cherry picked from commit 978a1aea7d18af79d6d78d0ab5e8d058c4b7c93c) --- .changes/unreleased/Fixes-20240327-210249.yaml | 7 +++++++ setup.py | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changes/unreleased/Fixes-20240327-210249.yaml diff --git a/.changes/unreleased/Fixes-20240327-210249.yaml b/.changes/unreleased/Fixes-20240327-210249.yaml new file mode 100644 index 000000000..04a5c5e38 --- /dev/null +++ b/.changes/unreleased/Fixes-20240327-210249.yaml @@ -0,0 +1,7 @@ +kind: Fixes +body: Add `pandas` extra for `google-cloud-bigquery` to pick up missing `pyarrow` + dependency +time: 2024-03-27T21:02:49.619691-04:00 +custom: + Author: mikealfare + Issue: "1152" diff --git a/setup.py b/setup.py index 36d7cbc9e..5ee60fe66 100644 --- a/setup.py +++ b/setup.py @@ -75,7 +75,8 @@ def _dbt_core_version(plugin_version: str) -> str: include_package_data=True, install_requires=[ f"dbt-core~={_dbt_core_version(_dbt_bigquery_version())}", - "google-cloud-bigquery~=3.0", + # 3.20 introduced pyarrow>=3.0 under the `pandas` extra + "google-cloud-bigquery[pandas]>=3.0,<4.0", "google-cloud-storage~=2.4", "google-cloud-dataproc~=5.0", "agate~=1.6.3",