Skip to content

Commit

Permalink
chore: updates minimum version of bqstorage (#1542)
Browse files Browse the repository at this point in the history
* chore: updates minimum version of bqstorage

* removes unneeded test

* updates linting, removes unneeded comment
  • Loading branch information
chalmerlowe authored Apr 4, 2023
1 parent be0255e commit 0bf9546
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion testing/constraints-3.7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions tests/unit/job/test_query_pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0bf9546

Please sign in to comment.