commit | e93f73b471f6949f975db02b986f917c1b19f064 | [log] [tgz] |
---|---|---|
author | Martin Grund <martin.grund@databricks.com> | Mon Aug 26 10:07:11 2024 +0200 |
committer | Martin Grund <martin.grund@databricks.com> | Mon Aug 26 10:07:11 2024 +0200 |
tree | aee0e58d14c0c60419f4078476727f0cf2e6798d | |
parent | b05a60228c217f40f37e9f0b78ddf69f36e0da6e [diff] |
[#58] Adding Support for select, selectExpr, crossJoin, and Alias ### What changes were proposed in this pull request? Adds support in the DataFrame for: * `Alias` * `Select` * `SelectExpr` * `CrossJoin` ### Why are the changes needed? Compatibility ### Does this PR introduce _any_ user-facing change? Yes ### How was this patch tested? Added new integration tests. Closes #59 from grundprinzip/df_functions_v1. Authored-by: Martin Grund <martin.grund@databricks.com> Signed-off-by: Martin Grund <martin.grund@databricks.com>
This project houses the experimental client for Spark Connect for Apache Spark written in Golang.
Currently, the Spark Connect client for Golang is highly experimental and should not be used in any production setting. In addition, the PMC of the Apache Spark project reserves the right to withdraw and abandon the development of this project if it is not sustainable.
This section explains how to run Spark Connect Go locally.
Step 1: Install Golang: https://go.dev/doc/install.
Step 2: Ensure you have installed buf CLI
installed, more info here
Step 3: Run the following commands to setup the Spark Connect client.
git clone https://github.com/apache/spark-connect-go.git git submodule update --init --recursive make gen && make test
Step 4: Setup the Spark Driver on localhost.
Download Spark distribution (3.5.0+), unzip the package.
Start the Spark Connect server with the following command (make sure to use a package version that matches your Spark distribution):
sbin/start-connect-server.sh --packages org.apache.spark:spark-connect_2.12:3.5.2
Step 5: Run the example Go application.
go run cmd/spark-connect-example-spark-session/main.go
The overall goal of the design is to find a good balance of principle of the least surprise for develoeprs that are familiar with the APIs of Apache Spark and idiomatic Go usage. The high-level structure of the packages follows roughly the PySpark giudance but with Go idioms.
Please review the Contribution to Spark guide for information on how to get started contributing to the project.