[SPARK-41196] [CONNECT] Homogenize the protobuf version across the Spark connect server to use the same major version.#38693
Closed
grundprinzip wants to merge 4 commits intoapache:masterfrom
Closed
Conversation
Contributor
|
You need to re-generate for the Python side. |
Contributor
|
Also need to make the Scala side version consistent https://github.com/apache/spark/blob/master/connector/connect/pom.xml#L35? |
Contributor
|
LGTM |
HyukjinKwon
pushed a commit
that referenced
this pull request
Nov 19, 2022
… Python ### What changes were proposed in this pull request? Fix out of sync generated files for Python. This happens on a rare case for protobuf version change. #38693 downgraded protobuf versions. There were something not generated before but with the protobuf version downgraded that was generated (and this is why there was no merge conflict). However [the downgrading PR](#38693) was based on old code before #38638 so the protobuf generates based on stale code which leads to stale generated files. The way to better avoid this is when upon such change, it should lock the repo (partially on some directory to reduce impact), do the work, merge, and enforce pending PR to rebase. However this is not feasible (or too heavy) for concurrent development on Spark repo. ### Why are the changes needed? Fix out of sync generated files for Python. ### Does this PR introduce _any_ user-facing change? NO ### How was this patch tested? UT Closes #38718 from amaliujia/fix_out_of_sync_proto. Authored-by: Rui Wang <rui.wang@databricks.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
|
Can one of the admins verify this patch? |
zhengruifeng
added a commit
that referenced
this pull request
Nov 22, 2022
### What changes were proposed in this pull request? pin `protobuf==3.19.4` in tests ### Why are the changes needed? versions were already changed in #38693 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? updated CI Closes #38729 from zhengruifeng/connect_infra_protobuf. Authored-by: Ruifeng Zheng <ruifengz@apache.org> Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
SandishKumarHN
pushed a commit
to SandishKumarHN/spark
that referenced
this pull request
Dec 12, 2022
…rk connect server to use the same major version ### What changes were proposed in this pull request? This patch homogenize the protobuf versions between the Spark Connect server and Python clients to use the same major version. ### Why are the changes needed? Compatibility ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Existing UT. Closes apache#38693 from grundprinzip/proto-python. Lead-authored-by: Martin Grund <martin.grund@databricks.com> Co-authored-by: Martin Grund <grundprinzip@gmail.com> Signed-off-by: Herman van Hovell <herman@databricks.com>
SandishKumarHN
pushed a commit
to SandishKumarHN/spark
that referenced
this pull request
Dec 12, 2022
… Python ### What changes were proposed in this pull request? Fix out of sync generated files for Python. This happens on a rare case for protobuf version change. apache#38693 downgraded protobuf versions. There were something not generated before but with the protobuf version downgraded that was generated (and this is why there was no merge conflict). However [the downgrading PR](apache#38693) was based on old code before apache#38638 so the protobuf generates based on stale code which leads to stale generated files. The way to better avoid this is when upon such change, it should lock the repo (partially on some directory to reduce impact), do the work, merge, and enforce pending PR to rebase. However this is not feasible (or too heavy) for concurrent development on Spark repo. ### Why are the changes needed? Fix out of sync generated files for Python. ### Does this PR introduce _any_ user-facing change? NO ### How was this patch tested? UT Closes apache#38718 from amaliujia/fix_out_of_sync_proto. Authored-by: Rui Wang <rui.wang@databricks.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
SandishKumarHN
pushed a commit
to SandishKumarHN/spark
that referenced
this pull request
Dec 12, 2022
### What changes were proposed in this pull request? pin `protobuf==3.19.4` in tests ### Why are the changes needed? versions were already changed in apache#38693 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? updated CI Closes apache#38729 from zhengruifeng/connect_infra_protobuf. Authored-by: Ruifeng Zheng <ruifengz@apache.org> Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
beliefer
pushed a commit
to beliefer/spark
that referenced
this pull request
Dec 15, 2022
…rk connect server to use the same major version ### What changes were proposed in this pull request? This patch homogenize the protobuf versions between the Spark Connect server and Python clients to use the same major version. ### Why are the changes needed? Compatibility ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Existing UT. Closes apache#38693 from grundprinzip/proto-python. Lead-authored-by: Martin Grund <martin.grund@databricks.com> Co-authored-by: Martin Grund <grundprinzip@gmail.com> Signed-off-by: Herman van Hovell <herman@databricks.com>
beliefer
pushed a commit
to beliefer/spark
that referenced
this pull request
Dec 15, 2022
… Python ### What changes were proposed in this pull request? Fix out of sync generated files for Python. This happens on a rare case for protobuf version change. apache#38693 downgraded protobuf versions. There were something not generated before but with the protobuf version downgraded that was generated (and this is why there was no merge conflict). However [the downgrading PR](apache#38693) was based on old code before apache#38638 so the protobuf generates based on stale code which leads to stale generated files. The way to better avoid this is when upon such change, it should lock the repo (partially on some directory to reduce impact), do the work, merge, and enforce pending PR to rebase. However this is not feasible (or too heavy) for concurrent development on Spark repo. ### Why are the changes needed? Fix out of sync generated files for Python. ### Does this PR introduce _any_ user-facing change? NO ### How was this patch tested? UT Closes apache#38718 from amaliujia/fix_out_of_sync_proto. Authored-by: Rui Wang <rui.wang@databricks.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
beliefer
pushed a commit
to beliefer/spark
that referenced
this pull request
Dec 15, 2022
### What changes were proposed in this pull request? pin `protobuf==3.19.4` in tests ### Why are the changes needed? versions were already changed in apache#38693 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? updated CI Closes apache#38729 from zhengruifeng/connect_infra_protobuf. Authored-by: Ruifeng Zheng <ruifengz@apache.org> Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
beliefer
pushed a commit
to beliefer/spark
that referenced
this pull request
Dec 18, 2022
…rk connect server to use the same major version ### What changes were proposed in this pull request? This patch homogenize the protobuf versions between the Spark Connect server and Python clients to use the same major version. ### Why are the changes needed? Compatibility ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Existing UT. Closes apache#38693 from grundprinzip/proto-python. Lead-authored-by: Martin Grund <martin.grund@databricks.com> Co-authored-by: Martin Grund <grundprinzip@gmail.com> Signed-off-by: Herman van Hovell <herman@databricks.com>
beliefer
pushed a commit
to beliefer/spark
that referenced
this pull request
Dec 18, 2022
… Python ### What changes were proposed in this pull request? Fix out of sync generated files for Python. This happens on a rare case for protobuf version change. apache#38693 downgraded protobuf versions. There were something not generated before but with the protobuf version downgraded that was generated (and this is why there was no merge conflict). However [the downgrading PR](apache#38693) was based on old code before apache#38638 so the protobuf generates based on stale code which leads to stale generated files. The way to better avoid this is when upon such change, it should lock the repo (partially on some directory to reduce impact), do the work, merge, and enforce pending PR to rebase. However this is not feasible (or too heavy) for concurrent development on Spark repo. ### Why are the changes needed? Fix out of sync generated files for Python. ### Does this PR introduce _any_ user-facing change? NO ### How was this patch tested? UT Closes apache#38718 from amaliujia/fix_out_of_sync_proto. Authored-by: Rui Wang <rui.wang@databricks.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
beliefer
pushed a commit
to beliefer/spark
that referenced
this pull request
Dec 18, 2022
### What changes were proposed in this pull request? pin `protobuf==3.19.4` in tests ### Why are the changes needed? versions were already changed in apache#38693 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? updated CI Closes apache#38729 from zhengruifeng/connect_infra_protobuf. Authored-by: Ruifeng Zheng <ruifengz@apache.org> Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
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 were proposed in this pull request?
This patch homogenize the protobuf versions between the Spark Connect server and Python clients to use the same major version.
Why are the changes needed?
Compatibility
Does this PR introduce any user-facing change?
No
How was this patch tested?
Existing UT.