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

refactor: Removing duplicated code to handle array values#2143

Merged
gauravpurohit06 merged 4 commits intogoogleapis:mainfrom
gauravpurohit06:array_decode_refactor
Dec 7, 2022
Merged

refactor: Removing duplicated code to handle array values#2143
gauravpurohit06 merged 4 commits intogoogleapis:mainfrom
gauravpurohit06:array_decode_refactor

Conversation

@gauravpurohit06
Copy link
Copy Markdown
Contributor

@gauravpurohit06 gauravpurohit06 commented Nov 3, 2022

Business logic to decode data types enclosed in an array is duplicated at multiple places which is prone to error and bugs.

The same deserialization logic for data types have been duplicated at multiple places which is prone to error.
@gauravpurohit06 gauravpurohit06 requested a review from a team November 3, 2022 09:13
@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 Nov 3, 2022
@gauravpurohit06 gauravpurohit06 added the owlbot:run Add this label to trigger the Owlbot post processor. label Nov 3, 2022
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Nov 3, 2022
@gcf-owl-bot gcf-owl-bot Bot requested a review from a team November 3, 2022 09:21
Copy link
Copy Markdown
Collaborator

@olavloite olavloite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brilliant find. I have a couple of questions whether we could make this even more efficient, now that we are looking into this. Would you mind taking a look at that?

@ansh0l ansh0l marked this pull request as draft November 24, 2022 10:47
@gauravpurohit06 gauravpurohit06 marked this pull request as ready for review December 7, 2022 05:38
@gauravpurohit06 gauravpurohit06 added the owlbot:run Add this label to trigger the Owlbot post processor. label Dec 7, 2022
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Dec 7, 2022
Copy link
Copy Markdown
Contributor

@rajatbhatta rajatbhatta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for working on this enhancement!

@gauravpurohit06 gauravpurohit06 merged commit f853918 into googleapis:main Dec 7, 2022
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: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants