-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
api: bigqueryIssues related to the BigQuery API.Issues related to the BigQuery API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.
Description
Client
bigquery
Environment
Go 1.22
Code and Dependencies
package main
func main() {
// ...
var values []bigquery.Value
err := it.Next(&values)
if err == iterator.Done {
return
}
if err != nil {
// TODO: Handle error.
}
fmt.Println(it.TotalRows)
}Expected behavior
it.TotalRows() should have the correct value after the first call to RowIterator.Next(context.Context)
Actual behavior
When the first call of it.Next(ctx) hits the paged cache the length of the cache is returned and not the total number of rows.
google-cloud-go/bigquery/iterator.go
Line 409 in c2ee207
| totalRows: uint64(len(converted)), |
Metadata
Metadata
Assignees
Labels
api: bigqueryIssues related to the BigQuery API.Issues related to the BigQuery API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
