This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new acdccfe0b3e3 [SPARK-50232][PYTHON][CONNECT] Add 'protobuf==5.28.3' in 
dev/requirements.txt
acdccfe0b3e3 is described below

commit acdccfe0b3e3925eedc7950e3821231ffef60874
Author: Hyukjin Kwon <[email protected]>
AuthorDate: Tue Nov 5 09:58:36 2024 -0800

    [SPARK-50232][PYTHON][CONNECT] Add 'protobuf==5.28.3' in 
dev/requirements.txt
    
    ### What changes were proposed in this pull request?
    
    This PR proposes to add 'protobuf==5.28.3' in `dev/requirements.txt`. If 
you have an old version in your env, you would face an error like:
    
    ```
    google.protobuf.runtime_version.VersionError: Detected incompatible 
Protobuf Gencode/Runtime versions when loading spark/connect/base.proto: 
gencode 5.28.3 runtime 5.28.2. Runtime version cannot be older than the linked 
gencode version. See Protobuf version guarantees at 
https://protobuf.dev/support/cross-version-runtime-guarantee.
    ```
    
    This PR is a sort of a followup of 
https://github.com/apache/spark/pull/48644
    
    ### Why are the changes needed?
    
    So developers can easily set up their env.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No, dev-only.
    
    ### How was this patch tested?
    
    Manually installed and tested.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #48763 from HyukjinKwon/note-protobuf.
    
    Authored-by: Hyukjin Kwon <[email protected]>
    Signed-off-by: Hyukjin Kwon <[email protected]>
---
 dev/requirements.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev/requirements.txt b/dev/requirements.txt
index 9f8d04065900..a9874f77113a 100644
--- a/dev/requirements.txt
+++ b/dev/requirements.txt
@@ -61,6 +61,7 @@ py
 grpcio>=1.67.0
 grpcio-status>=1.67.0
 googleapis-common-protos>=1.65.0
+protobuf==5.28.3
 
 # Spark Connect python proto generation plugin (optional)
 mypy-protobuf==3.3.0


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to