Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

fix: getColumnCount would fail for empty partititioned result sets#2588

Merged
olavloite merged 1 commit intomainfrom
metadata-for-empty-result-sets
Aug 14, 2023
Merged

fix: getColumnCount would fail for empty partititioned result sets#2588
olavloite merged 1 commit intomainfrom
metadata-for-empty-result-sets

Conversation

@olavloite
Copy link
Copy Markdown
Collaborator

@olavloite olavloite commented Aug 14, 2023

Calling getColumnCount() would fail for empty ResultSets that were returned for partitioned queries. The reason for this was that the number of columns would be calculated based on the last seen row. This would not work for ResultSets without any rows at all.

Calling getColumnCount() would fail for ResultSets that were returned for partitioned
queries. The reason for this was that the number of columns would be calculated based
on the last seen row. This would not work for ResultSets without any rows at all.
@olavloite olavloite requested review from a team and rajatbhatta August 14, 2023 10:55
@product-auto-label product-auto-label Bot added size: s Pull request size is small. api: spanner Issues related to the googleapis/java-spanner API. labels Aug 14, 2023
@olavloite olavloite merged commit 9a2f3fc into main Aug 14, 2023
@olavloite olavloite deleted the metadata-for-empty-result-sets branch August 14, 2023 13:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: spanner Issues related to the googleapis/java-spanner API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants