Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,9 @@ def _check_dependencies() -> None:
_versions_helpers.BQ_STORAGE_VERSIONS.try_import(raise_if_error=True)
if not _versions_helpers.BQ_STORAGE_VERSIONS.supports_arrow_serialization_options:
raise exceptions.LegacyBigQueryStorageError(
"query_results_format=ARROW needs a google-cloud-bigquery-storage "
"release whose BigQueryReadClient.read_rows() accepts "
"arrow_serialization_options, please upgrade it "
"(`pip install --upgrade google-cloud-bigquery-storage`) "
"query_results_format=ARROW needs a newer google-cloud-bigquery-storage, "
"please upgrade it "
'(`pip install "google-cloud-bigquery[bqstorage]"`) '
"(version found: "
f"{_versions_helpers.BQ_STORAGE_VERSIONS.installed_version})."
)
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-bigquery/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Repository = "https://github.com/googleapis/google-cloud-python/tree/main/packag
# moved back to optional due to bloat. See
# https://github.com/googleapis/python-bigquery/issues/1196 for more background.
bqstorage = [
"google-cloud-bigquery-storage >= 2.29.0, < 3.0.0",
"google-cloud-bigquery-storage >= 2.43.0, < 3.0.0",
# 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
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ google-resumable-media==2.0.0
packaging==24.2.0
python-dateutil==2.8.2
requests==2.33.0
google-cloud-bigquery-storage==2.29.0
google-cloud-bigquery-storage==2.43.0
grpcio==1.59.0
grpcio-status==1.59.0
pyarrow==6.0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ def test_check_dependencies_requires_read_rows_arrow_options(supported):
else:
with pytest.raises(
exceptions.LegacyBigQueryStorageError,
match=r"pip install --upgrade google-cloud-bigquery-storage.*"
match=r'pip install "google-cloud-bigquery\[bqstorage\]".*'
r"\(version found: 2\.42\.0\)",
):
_check_dependencies()
Expand Down
Loading