-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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.