From 0bf95460866089c8e955c97ae02f2fa443e1ef62 Mon Sep 17 00:00:00 2001 From: Chalmer Lowe Date: Tue, 4 Apr 2023 10:20:10 -0400 Subject: [PATCH] chore: updates minimum version of bqstorage (#1542) * chore: updates minimum version of bqstorage * removes unneeded test * updates linting, removes unneeded comment --- setup.py | 2 +- testing/constraints-3.7.txt | 2 +- tests/unit/job/test_query_pandas.py | 6 ------ 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/setup.py b/setup.py index 51cb6dc75..08106f694 100644 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ # Keep the no-op bqstorage extra for backward compatibility. # See: https://github.com/googleapis/python-bigquery/issues/757 "bqstorage": [ - "google-cloud-bigquery-storage >= 2.0.0, <3.0.0dev", + "google-cloud-bigquery-storage >= 2.6.0, <3.0.0dev", # Due to an issue in pip's dependency resolver, the `grpc` extra is not # installed, even though `google-cloud-bigquery-storage` specifies it # as `google-api-core[grpc]`. We thus need to explicitly specify it here. diff --git a/testing/constraints-3.7.txt b/testing/constraints-3.7.txt index c94d80abf..2ea482e8b 100644 --- a/testing/constraints-3.7.txt +++ b/testing/constraints-3.7.txt @@ -8,7 +8,7 @@ db-dtypes==0.3.0 geopandas==0.9.0 google-api-core==1.31.5 -google-cloud-bigquery-storage==2.0.0 +google-cloud-bigquery-storage==2.6.0 google-cloud-core==1.6.0 google-resumable-media==0.6.0 grpcio==1.47.0 diff --git a/tests/unit/job/test_query_pandas.py b/tests/unit/job/test_query_pandas.py index a2444efdd..01b60ceb3 100644 --- a/tests/unit/job/test_query_pandas.py +++ b/tests/unit/job/test_query_pandas.py @@ -59,12 +59,6 @@ @pytest.fixture def table_read_options_kwarg(): - # Create a BigQuery Storage table read options object with pyarrow compression - # enabled if a recent-enough version of google-cloud-bigquery-storage dependency is - # installed to support the compression. - if not hasattr(bigquery_storage, "ArrowSerializationOptions"): - return {} - read_options = bigquery_storage.ReadSession.TableReadOptions( arrow_serialization_options=bigquery_storage.ArrowSerializationOptions( buffer_compression=bigquery_storage.ArrowSerializationOptions.CompressionCodec.LZ4_FRAME