PendingDeprecationWarning in google-cloud-bigquery-storage
メンテナーはふだん 1 日以内に返信
@tswast がすでに取り組んでいます。
2026年8月24日 から。
評価
この issue はまだ評価されていません。
説明
Determine this is the right repository
- I determined this is the correct repository in which to report this bug.
Summary of the issue
Context
We're getting the following deprecation warning when trying to load a BigQuery table into a pandas dataframe:
stormware/google/bigquery.py:52: in get_table
return self.client.list_rows(table).to_dataframe()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../.local/share/pyorbs/magic/lib/python3.12/site-packages/google/cloud/bigquery/table.py:2804: in to_dataframe
record_batch = self.to_arrow(
../../../.local/share/pyorbs/magic/lib/python3.12/site-packages/google/cloud/bigquery/table.py:2339: in to_arrow
for record_batch in self.to_arrow_iterable(
../../../.local/share/pyorbs/magic/lib/python3.12/site-packages/google/cloud/bigquery/table.py:2171: in _to_page_iterable
yield from result_pages
../../../.local/share/pyorbs/magic/lib/python3.12/site-packages/google/cloud/bigquery/_pandas_helpers.py:1057: in _download_table_bqstorage
future.result()
/opt/hostedtoolcache/Python/3.12.14/x64/lib/python3.12/concurrent/futures/_base.py:449: in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
/opt/hostedtoolcache/Python/3.12.14/x64/lib/python3.12/concurrent/futures/_base.py:401: in __get_result
raise self._exception
/opt/hostedtoolcache/Python/3.12.14/x64/lib/python3.12/concurrent/futures/thread.py:59: in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../.local/share/pyorbs/magic/lib/python3.12/site-packages/google/cloud/bigquery/_pandas_helpers.py:856: in _download_table_bqstorage_stream
item = page_to_item(page)
^^^^^^^^^^^^^^^^^^
../../../.local/share/pyorbs/magic/lib/python3.12/site-packages/google/cloud/bigquery/_pandas_helpers.py:832: in _bqstorage_page_to_arrow
return page.to_arrow()
^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <google.cloud.bigquery_storage_v1.reader.ReadRowsPage object at 0x7fe977335eb0>
def to_arrow(self):
"""Create an :class:`pyarrow.RecordBatch` of rows in the page.
Returns:
pyarrow.RecordBatch:
Rows from the message, as an Arrow record batch.
"""
> warnings.warn(
"Retrieving Arrow record batches directly via google-cloud-bigquery-storage is deprecated. "
"Please use 'pandas_gbq.arrow.from_read_rows_response' or install 'pandas-gbq'.",
PendingDeprecationWarning,
stacklevel=2,
)
E PendingDeprecationWarning: Retrieving Arrow record batches directly via google-cloud-bigquery-storage is deprecated. Please use 'pandas_gbq.arrow.from_read_rows_response' or install 'pandas-gbq'.
Expected Behavior:
We expect no deprecation warnings.
Actual Behavior:
We get a deprecation warning.
API client name and version
No response
Reproduction steps: code
Reproduction steps: supporting files
No response
Reproduction steps: actual results
Reproduction steps: expected results
OS & version + platform
No response
Python environment
No response
Python dependencies
Package Version
----------------------------- -------------------------------
...
google-ads 31.4.0
google-api-core 2.34.0
google-api-python-client 2.198.0
google-auth 2.56.3
google-auth-httplib2 0.4.1
google-auth-oauthlib 1.4.0
google-cloud-bigquery 3.43.0
google-cloud-bigquery-storage 2.40.0
google-cloud-core 2.6.1
google-cloud-secret-manager 2.30.0
google-crc32c 1.8.0
google-resumable-media 2.10.1
googleapis-common-protos 1.75.1
...
### Additional context
_No response_
- 主要言語
- Python
- スター
- 5.4k
- フォーク
- 1.8k
- 平均マージ
- 2日 10時間
- マージ済み PR(30日)
- 121
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
googleapis/google-cloud-python のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
googleapis/google-cloud-python#18532 ·
メンテナーはふだん 1 日以内に返信
-
auth: call_client_cert_callback() discards passphrase for encrypted keys対応中かも @kwy404 が 4 日前に担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 92/100
googleapis/google-cloud-python#18467 ·
メンテナーはふだん 1 日以内に返信
-
auth: `impersonated_credentials` loses `subject` on copy, so `with_scopes()` and `with_quota_project()` turn off domain wide delegation対応中かも @Om-singhaI が 16 日前に担当しました。 オープンauth priority: p2 type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
googleapis/google-cloud-python#18428 ·
メンテナーはふだん 1 日以内に返信
-
priority: p2 type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
googleapis/google-cloud-python#18375 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
ci: enable --strict flag in presubmit twine_check対応中かも @ohmayr が 5 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
googleapis/google-cloud-python#18339 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
googleapis/google-cloud-python の issue をすべて見る
似ている issue
-
needs-human needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
gke-labs/kube-agents#2400 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Device Details tables: FS/SF columns contradict each other (nfet_01v8 Vt row, pfet_01v8 Idsat row)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
google/skywater-pdk#450 ·
-
Drained trajectory arrays are overwritten when the sequence buffer is reused対応中かも @sylvesterkaczmarek が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
google-deepmind/bsuite#56 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
LearningCircuit/local-deep-research#7206 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
chingu-voyages/V62-tier3-team-33#285 ·
メンテナーはふだん 1 日以内に返信