Skip to content

Commit

Permalink
fix: make read_session no longer DEPRECATED (#765)
Browse files Browse the repository at this point in the history
Co-authored-by: Chalmer Lowe <chalmer.lowe@gmail.com>
  • Loading branch information
Linchin and chalmerlowe authored Apr 11, 2024
1 parent d746c3c commit a3168f4
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions google/cloud/bigquery_storage_v1/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,11 @@ def rows(self, read_session=None):
read_session ( \
Optional[~google.cloud.bigquery_storage_v1.types.ReadSession] \
):
DEPRECATED.
This argument was used to specify the schema of the rows in the
stream, but now the first message in a read stream contains
this information.
this information. When row_restriction is applied, some streams
may be empty without read_session info. Provide this argument
to avoid an error. For more information, see https://github.com/googleapis/python-bigquery-storage/issues/733
Returns:
Iterable[Mapping]:
Expand All @@ -250,11 +250,11 @@ def to_arrow(self, read_session=None):
read_session ( \
~google.cloud.bigquery_storage_v1.types.ReadSession \
):
DEPRECATED.
This argument was used to specify the schema of the rows in the
stream, but now the first message in a read stream contains
this information.
this information. When row_restriction is applied, some streams
may be empty without read_session info. Provide this argument
to avoid an error. For more information, see https://github.com/googleapis/python-bigquery-storage/issues/733
Returns:
pyarrow.Table:
Expand All @@ -276,11 +276,11 @@ def to_dataframe(self, read_session=None, dtypes=None):
read_session ( \
~google.cloud.bigquery_storage_v1.types.ReadSession \
):
DEPRECATED.
This argument was used to specify the schema of the rows in the
stream, but now the first message in a read stream contains
this information.
this information. When row_restriction is applied, some streams
may be empty without read_session info. Provide this argument
to avoid an error. For more information, see https://github.com/googleapis/python-bigquery-storage/issues/733
dtypes ( \
Map[str, Union[str, pandas.Series.dtype]] \
):
Expand Down Expand Up @@ -308,11 +308,11 @@ class ReadRowsIterable(object):
read_session ( \
Optional[~google.cloud.bigquery_storage_v1.types.ReadSession] \
):
DEPRECATED.
This argument was used to specify the schema of the rows in the
stream, but now the first message in a read stream contains
this information.
this information. When row_restriction is applied, some streams
may be empty without read_session info. Provide this argument
to avoid an error. For more information, see https://github.com/googleapis/python-bigquery-storage/issues/733ß
"""

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

0 comments on commit a3168f4

Please sign in to comment.