-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bigquery: don't call tabledata.list if there are no rows in the query…
… result If jobs.getQueryResults says that the total rows in the result is zero, have RowIterator.Next return immediately with iterator.Done, without calling tabledata.list. This allows queries with DML statements to be treated just like any other query: callers can attempt to iterate over the resulting rows. (They will get iterator.Done on calls to RowIterator.Next.) Without this change, the call to tabledata.list will fail. Change-Id: I9c051449ecc6307efbe20e9edc01ce6a7826e297 Reviewed-on: https://code-review.googlesource.com/30610 Reviewed-by: kokoro <[email protected]> Reviewed-by: Jean de Klerk <[email protected]>
- Loading branch information
Showing
4 changed files
with
40 additions
and
23 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
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