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

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

Merged
merged 2 commits into from
May 19, 2022

Conversation

shollyman
Copy link
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 yirutang and a team May 10, 2022 17:32
@shollyman shollyman requested a review from a team as a code owner 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
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
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