google-cloud-go icon indicating copy to clipboard operation
google-cloud-go copied to clipboard

fix(bigquery): totalRows returned by fetchCachedPage

Open zecke opened this issue 9 months ago • 3 comments

The RowIterator.TotalRows is wrong when hitting the cached page on the fast path (e.g. not changing start index or updating the page info).

fixes: #11873

zecke avatar Mar 19 '25 14:03 zecke

Overall looks good, but can you add an integration test that shows that issue ? It happens when running two queries in sequence ?

Sure. Do you have any indication of the cost of running the BigQuery integration_test.go?

zecke avatar Apr 09 '25 12:04 zecke

Overall looks good, but can you add an integration test that shows that issue ? It happens when running two queries in sequence ?

Sure. Do you have any indication of the cost of running the BigQuery integration_test.go?

I don't recommended running the full suite, you can run just one test with a command like: go test -run ^TestIntegration_StorageReadClientProject -v. Not sure about the costs of running the full suite, but running just a few tests should be under the free tier.

I can also take the work over and write the tests for it, so I can run the integration tests with my corp account here. Let me know what works best for you.

alvarowolfx avatar Apr 09 '25 20:04 alvarowolfx

I can also take the work over and write the tests for it, so I can run the integration tests with my corp account here. Let me know what works best for you.

Thanks for the offer. Please take this over and write the test/make changes as needed.

zecke avatar Apr 12 '25 12:04 zecke

superseded by https://github.com/googleapis/google-cloud-go/pull/12230

alvarowolfx avatar May 09 '25 15:05 alvarowolfx