-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-50139][INFRA][SS][PYTHON] Introduce scripts to re-generate and checking StateMessage_pb2.py and StateMessage_pb2.pyi #48815
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
Conversation
dongjoon-hyun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM. Thank you, @LuciferYang .
| # source: StateMessage.proto | ||
| # Protobuf Python Version: 5.27.3 | ||
| # source: org/apache/spark/sql/execution/streaming/StateMessage.proto | ||
| # Protobuf Python Version: 5.28.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes LGTM, thanks!
|
Thank you, @LuciferYang , @zhengruifeng , @bogao007 . Merged to master for Apache Spark 4.0.0 on February 2024. |
|
Thanks @dongjoon-hyun @zhengruifeng and @bogao007 |
What changes were proposed in this pull request?
This pr includes the following changes:
dev/connect-gen-protos.shscript to support the generation of.pyfiles from.protofiles for both theconnectandstreamingmodules simultaneously. Rename the script todev/gen-protos.sh. Additionally, to maintain compatibility with previous development practices, this pull request (PR) introducesdev/connect-gen-protos.shanddev/streaming-gen-protos.shas wrappers arounddev/gen-protos.sh.After this PR, you can use:
or
to regenerate the corresponding
.pyfiles for the respective modules.dev/connect-check-protos.pyscript to check the generated results for both theconnectandstreamingmodules simultaneously, and rename it todev/check-protos.py. Additionally, update the invocation of the check script inbuild_and_test.yml.Why are the changes needed?
Provid tools for re-generate and checking
StateMessage_pb2.pyandStateMessage_pb2.pyi.Does this PR introduce any user-facing change?
No
How was this patch tested?
Was this patch authored or co-authored using generative AI tooling?
No