Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion dev/check-codegen-python.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def check_connect_protos():
else:
fail(
"Generated files for pyspark-connect are out of sync! "
"Please run ./connector/connect/dev/generate_protos.sh"
"If you have touched files under connector/connect/src/main/protobuf, "
"please run ./connector/connect/dev/generate_protos.sh. "
"If you haven't touched any file above, please rebase your PR against main branch."
)


Expand Down
5 changes: 5 additions & 0 deletions python/pyspark/sql/connect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,8 @@ To use the release version of Spark Connect:
./python/run-tests --testnames 'pyspark.sql.tests.connect.test_connect_basic'
```

## Generate proto generated files for the Python client
1. Install `buf version 1.8.0`: 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`
Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

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

Copy link
Contributor Author

@amaliujia amaliujia Oct 22, 2022

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?