Skip to content

feat(bigquery/storage/managedwriter/adapt): normalize proto3 presence#6021

Merged
shollyman merged 2 commits intogoogleapis:mainfrom
shollyman:optional-normalizer
May 19, 2022
Merged

feat(bigquery/storage/managedwriter/adapt): normalize proto3 presence#6021
shollyman merged 2 commits intogoogleapis:mainfrom
shollyman:optional-normalizer

Conversation

@shollyman
Copy link
Copy Markdown
Contributor

@shollyman shollyman commented May 10, 2022

This PR changes the normalizer to clear the proto3 optional presence
field in the FieldDescriptorProto. The backend can treat this case
as an instance of proto2 optional.

More background information: https://github.com/protocolbuffers/protobuf/blob/main/docs/field_presence.md

This PR changes the normalizer to clear the proto3 optional presence
field in the FieldDescriptorProto.  The backend can treat this case
as an instance of proto2 optional.
@shollyman shollyman requested review from a team and yirutang May 10, 2022 17:32
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. api: bigquery Issues related to the BigQuery API. labels May 10, 2022
Copy link
Copy Markdown
Contributor

@yirutang yirutang left a comment

Choose a reason for hiding this comment

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

LGTM, I think it would be even better if you have a e2e so that we have greater confidence that e2e it works.

@shollyman shollyman changed the title feat(bigquery/storage/managedwriter/adapt): support proto3 presence feat(bigquery/storage/managedwriter/adapt): normalize proto3 presence May 19, 2022
@shollyman
Copy link
Copy Markdown
Contributor Author

LGTM, I think it would be even better if you have a e2e so that we have greater confidence that e2e it works.

#6023 will add the round trip testing

@shollyman shollyman enabled auto-merge (squash) May 19, 2022 20:54
@shollyman shollyman merged commit 2984600 into googleapis:main May 19, 2022
@shollyman shollyman deleted the optional-normalizer branch May 19, 2022 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the BigQuery API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants