Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit a3168f4

Browse files
Linchinchalmerlowe
andauthored
fix: make read_session no longer DEPRECATED (#765)
Co-authored-by: Chalmer Lowe <[email protected]>
1 parent d746c3c commit a3168f4

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

google/cloud/bigquery_storage_v1/reader.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,11 @@ def rows(self, read_session=None):
228228
read_session ( \
229229
Optional[~google.cloud.bigquery_storage_v1.types.ReadSession] \
230230
):
231-
DEPRECATED.
232-
233231
This argument was used to specify the schema of the rows in the
234232
stream, but now the first message in a read stream contains
235-
this information.
233+
this information. When row_restriction is applied, some streams
234+
may be empty without read_session info. Provide this argument
235+
to avoid an error. For more information, see https://github.com/googleapis/python-bigquery-storage/issues/733
236236
237237
Returns:
238238
Iterable[Mapping]:
@@ -250,11 +250,11 @@ def to_arrow(self, read_session=None):
250250
read_session ( \
251251
~google.cloud.bigquery_storage_v1.types.ReadSession \
252252
):
253-
DEPRECATED.
254-
255253
This argument was used to specify the schema of the rows in the
256254
stream, but now the first message in a read stream contains
257-
this information.
255+
this information. When row_restriction is applied, some streams
256+
may be empty without read_session info. Provide this argument
257+
to avoid an error. For more information, see https://github.com/googleapis/python-bigquery-storage/issues/733
258258
259259
Returns:
260260
pyarrow.Table:
@@ -276,11 +276,11 @@ def to_dataframe(self, read_session=None, dtypes=None):
276276
read_session ( \
277277
~google.cloud.bigquery_storage_v1.types.ReadSession \
278278
):
279-
DEPRECATED.
280-
281279
This argument was used to specify the schema of the rows in the
282280
stream, but now the first message in a read stream contains
283-
this information.
281+
this information. When row_restriction is applied, some streams
282+
may be empty without read_session info. Provide this argument
283+
to avoid an error. For more information, see https://github.com/googleapis/python-bigquery-storage/issues/733
284284
dtypes ( \
285285
Map[str, Union[str, pandas.Series.dtype]] \
286286
):
@@ -308,11 +308,11 @@ class ReadRowsIterable(object):
308308
read_session ( \
309309
Optional[~google.cloud.bigquery_storage_v1.types.ReadSession] \
310310
):
311-
DEPRECATED.
312-
313311
This argument was used to specify the schema of the rows in the
314312
stream, but now the first message in a read stream contains
315-
this information.
313+
this information. When row_restriction is applied, some streams
314+
may be empty without read_session info. Provide this argument
315+
to avoid an error. For more information, see https://github.com/googleapis/python-bigquery-storage/issues/733ß
316316
"""
317317

318318
# This class is modelled after the google.cloud.bigquery.table.RowIterator

0 commit comments

Comments
 (0)