Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Spanner): Cast some fields in the ResultStats object to int #7284

Merged
merged 1 commit into from
May 3, 2024

Conversation

saranshdhingra
Copy link
Contributor

This was changed to strings in the 1.76.0 release of Spanner. The other fields in the stats object like inside queryPlan were already returned as a string so we don't need to cast them.

But these 2 properties, rowCountLowerBound and rowCountExact are now casted to int so that we preserve the speed boost we get and maintain data integrity within the ResultStats object.

Fixes #7279

@saranshdhingra saranshdhingra requested review from a team as code owners May 3, 2024 10:11
@bshaffer bshaffer changed the title fix(Sanner): Cast some fields in the ResultStats object to int fix(Spanner): Cast some fields in the ResultStats object to int May 3, 2024
@bshaffer bshaffer enabled auto-merge (squash) May 3, 2024 16:53
@bshaffer bshaffer merged commit e71ee22 into main May 3, 2024
28 checks passed
@bshaffer bshaffer deleted the spanner-issue-7279 branch May 3, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Database::executePartitionedUpdate() returns string instead of int
2 participants