Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: `read_session` optional to `ReadRowsStream.rows()` The schema from the first `ReadRowsResponse` message can be used to decode messages, instead. Note: `to_arrow()` and `to_dataframe()` do not work on an empty stream unless a `read_session` has been passed in, as the schema is not available. This should not affect `google-cloud-bigquery` and `pandas-gbq`, as those packages use the lower-level message->dataframe/arrow methods. * revert change to comment * use else for empty arrow streams in try-except block Co-authored-by: Tres Seaver <tseaver@palladion.com> * update docstring to reflect that readsession and readrowsresponse can be used interchangeably * update arrow deserializer, too Co-authored-by: Tres Seaver <tseaver@palladion.com>
- Loading branch information
Showing
4 changed files
with
196 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.