-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-40796][CONNECT][FOLLOW-UP] Improve README for proto generated files in Connect Python client #38335
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
rangadi
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.
LGTM.
python/pyspark/sql/connect/README.md
Outdated
| ``` | ||
|
|
||
| ## Generate proto generated files for the Python client | ||
| 1. Install `buf`: https://docs.buf.build/installation |
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.
I think we also need to mention the related python packages:
grpcio==1.48.1
protobuf==4.21.6
mypy-protobuf==3.3.0
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.
buf's version in CI is 1.8.0, the latest one is 1.9.0. I think we also need to mention the version
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.
makes sense. I updated this doc with versions.
zhengruifeng
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.
LGTM
|
merged into master, thank you @amaliujia |
| ## Generate proto generated files for the Python client | ||
| 1. Install `buf`: https://docs.buf.build/installation | ||
| 2. Run `pip install grpcio==1.48.1 protobuf==4.21.6 mypy-protobuf==3.3.0` | ||
| 3. Run `./dev/generate_protos.sh` |
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.
oops, should be ./connector/connect/dev/generate_protos.sh
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.
I fix it in #38339
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.
oops I copied this from my local command which is not under the spark repo root directory.
@zhengruifeng maybe you can BTW update it in the PR that you pin dependency versions?
…files in Connect Python client ### What changes were proposed in this pull request? 1. Improve README for how to install `buf` dependency and then run the proto generated file script. 2. Improve the message for out-of-sync check script. ### Why are the changes needed? Improve developer experience either when touching Connect proto files or not touch those files but having master branch out of sync with local branch. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Existing checks. Closes apache#38335 from amaliujia/python_generate_buf_read_me. Authored-by: Rui Wang <[email protected]> Signed-off-by: Ruifeng Zheng <[email protected]>
What changes were proposed in this pull request?
bufdependency and then run the proto generated file script.Why are the changes needed?
Improve developer experience either when touching Connect proto files or not touch those files but having master branch out of sync with local branch.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Existing checks.