Add FieldMask class and helper functions#1041
Merged
Merged
Conversation
3871a28 to
2588545
Compare
Divyansh-db
reviewed
Oct 6, 2025
Divyansh-db
approved these changes
Oct 6, 2025
Divyansh-db
left a comment
Contributor
There was a problem hiding this comment.
LGTM, Can you also get an approval from Parth or Omer
parthban-db
reviewed
Oct 6, 2025
096bc3e to
14d55e3
Compare
4813d7b to
13fb116
Compare
|
If integration tests don't run automatically, an authorized user can run them manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes are proposed in this pull request?
Add FieldMask class and helper functions.
This class methods have the same signature than the google.protobuf.FieldMask
https://github.com/protocolbuffers/protobuf/blob/main/python/google/protobuf/internal/field_mask.py#L18
but serialize the FieldMask using snake_case, as expected by Databricks server.
Helper functions are required because serialization framework in templates only supports single line code.
Version Pin
Why >=4.21.0:
Stability: Version 4.21.0 was a stable release that introduced important performance improvements and API stabilization
Python 3.7+ compatibility.
Why <7.0:
Major version boundary: Avoid future breaking changes.
How is this tested?
Added unit tests.
NO_CHANGELOG=true