Skip to content

fix: getRowAsStruct should always return a decoded struct#3278

Closed
olavloite wants to merge 1 commit intomainfrom
to-struct-should-return-decoded-struct
Closed

fix: getRowAsStruct should always return a decoded struct#3278
olavloite wants to merge 1 commit intomainfrom
to-struct-should-return-decoded-struct

Conversation

@olavloite
Copy link
Collaborator

getRowAsStruct could return a (partially) undecoded struct, which would have an internally mutable data structure. The returned row should however preferably be an immutable object. To achieve this, the struct should be guaranteed to be decoded before returning it to the caller.

@olavloite olavloite requested a review from a team August 18, 2024 06:12
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/java-spanner API. labels Aug 18, 2024
@olavloite
Copy link
Collaborator Author

Closing as this is not necessary once the changes in #3267 have been merged.

@olavloite olavloite closed this Aug 19, 2024
@olavloite olavloite deleted the to-struct-should-return-decoded-struct branch August 19, 2024 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant