[SPARK-44681] Fix issues when writing Go application code using Spark Connect Go client library #14
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?
When trying to write Go application code using Spark Connect Go client and put the Go application code in users' own repo (e.g. https://github.com/user-foo/my-go-application), the Go application code cannot resolve Spark Connect Go client from
https://github.com/apache/spark-connect-go
correctly, due to two issues:The name
github.com/apache/spark-connect-go/v_3_4
cannot resolve correctly to find the module, it complains not findinggo.mod
file undergithub.com/apache/spark-connect-go/v_3_4
. After change the name togithub.com/apache/spark-connect-go/v34
, it is good.The Go application code needs generated Go protobuf code as well. Thus need to commit the generated Go protobuf code into
github.com/apache/spark-connect-go
repo.Why are the changes needed?
See above.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Tested by run Go application code to use Spark Connect Go client.