Skip to content

Commit

Permalink
Adjust sample in client docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
plamut committed Sep 22, 2020
1 parent 373cb19 commit cb753e5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions google/cloud/bigquery_storage_v1/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ def read_rows(
>>>
>>> requested_session = bigquery_storage_v1.types.ReadSession(
... table=table,
... data_format=bigquery_storage_v1.enums.DataFormat.AVRO,
... data_format=bigquery_storage_v1.types.DataFormat.AVRO,
... )
>>> session = client.create_read_session(
... parent=parent, read_session=requested_session
... )
>>> session = client.create_read_session(parent, requested_session)
>>>
>>> stream = session.streams[0], # TODO: Also read any other streams.
>>> read_rows_stream = client.read_rows(stream.name)
Expand Down

0 comments on commit cb753e5

Please sign in to comment.