This is an automated email from the ASF dual-hosted git repository.
dongjoon-hyun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/spark-connect-swift.git
The following commit(s) were added to refs/heads/main by this push:
new 22dd0e7 [SPARK-58198] Use Apache Spark 4.2.0 in `README.md`,
`Examples`, and `Examples.md`
22dd0e7 is described below
commit 22dd0e771cbe2719a77e828efafff2858f2de7d1
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Fri Jul 17 10:09:47 2026 -0700
[SPARK-58198] Use Apache Spark 4.2.0 in `README.md`, `Examples`, and
`Examples.md`
### What changes were proposed in this pull request?
This PR aims to use `Apache Spark 4.2.0` in `README.md`, `Examples`, and
the `Examples.md` DocC documentation.
### Why are the changes needed?
Apache Spark 4.2.0 was released on July 14th, 2026.
- https://spark.apache.org/releases/spark-release-4-2-0.html
- https://github.com/apache/spark/releases/tag/v4.2.0
The documentation should recommend the latest release to users.
### Does this PR introduce _any_ user-facing change?
No, this is a documentation-only change.
### How was this patch tested?
Manual review.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Fable 5
Closes #439 from dongjoon-hyun/SPARK-58198.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
Examples/app/README.md | 6 +++---
Examples/pi/README.md | 2 +-
Examples/pyspark-connect/README.md | 2 +-
Examples/spark-sql/README.md | 8 ++++----
Examples/stream/README.md | 4 ++--
README.md | 6 +++---
Sources/SparkConnect/Documentation.docc/Examples.md | 2 +-
7 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/Examples/app/README.md b/Examples/app/README.md
index 48f4c55..d2a49f7 100644
--- a/Examples/app/README.md
+++ b/Examples/app/README.md
@@ -7,7 +7,7 @@ This is an example Swift application to show how to use Apache
Spark Connect Swi
Prepare `Spark Connect Server` via running Docker image.
```bash
-docker run --rm -p 15002:15002 apache/spark:4.1.2 bash -c
"/opt/spark/sbin/start-connect-server.sh --wait"
+docker run --rm -p 15002:15002 apache/spark:4.2.0 bash -c
"/opt/spark/sbin/start-connect-server.sh --wait"
```
Build an application Docker image.
@@ -23,7 +23,7 @@ Run `app` docker image.
```bash
$ docker run --rm -e SPARK_REMOTE=sc://host.docker.internal:15002
apache/spark-connect-swift:app
-Connected to Apache Spark 4.1.2 Server
+Connected to Apache Spark 4.2.0 Server
EXECUTE: DROP TABLE IF EXISTS t
EXECUTE: CREATE TABLE IF NOT EXISTS t(a INT) USING ORC
EXECUTE: INSERT INTO t VALUES (1), (2), (3)
@@ -52,7 +52,7 @@ Run from source code.
```bash
$ swift run
...
-Connected to Apache Spark 4.1.2 Server
+Connected to Apache Spark 4.2.0 Server
EXECUTE: DROP TABLE IF EXISTS t
EXECUTE: CREATE TABLE IF NOT EXISTS t(a INT) USING ORC
EXECUTE: INSERT INTO t VALUES (1), (2), (3)
diff --git a/Examples/pi/README.md b/Examples/pi/README.md
index 882b90d..f39ade2 100644
--- a/Examples/pi/README.md
+++ b/Examples/pi/README.md
@@ -7,7 +7,7 @@ This is an example Swift application to show how to use Apache
Spark Connect Swi
Prepare `Spark Connect Server` via running Docker image.
```bash
-docker run --rm -p 15002:15002 apache/spark:4.1.2 bash -c
"/opt/spark/sbin/start-connect-server.sh --wait"
+docker run --rm -p 15002:15002 apache/spark:4.2.0 bash -c
"/opt/spark/sbin/start-connect-server.sh --wait"
```
Build an application Docker image.
diff --git a/Examples/pyspark-connect/README.md
b/Examples/pyspark-connect/README.md
index 5ecc00d..83d2eed 100644
--- a/Examples/pyspark-connect/README.md
+++ b/Examples/pyspark-connect/README.md
@@ -7,7 +7,7 @@ This is a reference example Python application to show how to
use Apache Spark C
Prepare `Spark Connect Server` via running Docker image.
```bash
-docker run --rm -p 15002:15002 apache/spark:4.1.2 bash -c
"/opt/spark/sbin/start-connect-server.sh --wait"
+docker run --rm -p 15002:15002 apache/spark:4.2.0 bash -c
"/opt/spark/sbin/start-connect-server.sh --wait"
```
Build an application Docker image.
diff --git a/Examples/spark-sql/README.md b/Examples/spark-sql/README.md
index 84fe502..c9ecb87 100644
--- a/Examples/spark-sql/README.md
+++ b/Examples/spark-sql/README.md
@@ -7,7 +7,7 @@ This is an example Swift application to show how to develop a
Spark SQL REPL (Re
Prepare `Spark Connect Server` via running Docker image.
```bash
-docker run -it --rm -p 15002:15002 apache/spark:4.1.2 bash -c
"/opt/spark/sbin/start-connect-server.sh --wait"
+docker run -it --rm -p 15002:15002 apache/spark:4.2.0 bash -c
"/opt/spark/sbin/start-connect-server.sh --wait"
```
Build an application Docker image.
@@ -23,7 +23,7 @@ Run `spark-sql` docker image.
```bash
$ docker run -it --rm -e SPARK_REMOTE=sc://host.docker.internal:15002
apache/spark-connect-swift:spark-sql
-Connected to Apache Spark 4.1.2 Server
+Connected to Apache Spark 4.2.0 Server
spark-sql (default)> SHOW DATABASES;
+---------+
|namespace|
@@ -87,14 +87,14 @@ Time taken: 46 ms
spark-sql (default)> exit;
```
-Apache Spark 4 supports [SQL Pipe
Syntax](https://spark.apache.org/docs/4.1.2/sql-pipe-syntax.html).
+Apache Spark 4 supports [SQL Pipe
Syntax](https://spark.apache.org/docs/4.2.0/sql-pipe-syntax.html).
Run from source code at this time.
```bash
$ swift run
...
Build of product 'SparkSQLRepl' complete! (2.33s)
-Connected to Apache Spark 4.1.2 Server
+Connected to Apache Spark 4.2.0 Server
spark-sql (default)>
FROM ORC.`/opt/spark/examples/src/main/resources/users.orc`
|> AGGREGATE COUNT(*) cnt
diff --git a/Examples/stream/README.md b/Examples/stream/README.md
index 6eb8624..3ad3796 100644
--- a/Examples/stream/README.md
+++ b/Examples/stream/README.md
@@ -5,7 +5,7 @@ This is an example Swift stream processing application to show
how to count word
## Run `Spark Connect Server`
```bash
-docker run --rm -p 15002:15002 apache/spark:4.1.2 bash -c
"/opt/spark/sbin/start-connect-server.sh --wait -c spark.log.level=ERROR"
+docker run --rm -p 15002:15002 apache/spark:4.2.0 bash -c
"/opt/spark/sbin/start-connect-server.sh --wait -c spark.log.level=ERROR"
```
## Run `Netcat` as a streaming input server
@@ -81,5 +81,5 @@ Batch: 2
```bash
$ TARGET_HOST=host.docker.internal swift run
...
-Connected to Apache Spark 4.1.2 Server
+Connected to Apache Spark 4.2.0 Server
```
diff --git a/README.md b/README.md
index e09e8a3..9b499ef 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@ For example, a user can develop and ship a lightweight
Swift-based SparkPi app.
**Docker Image Size**
| Name | Image Size |
| ------------- | ---------- |
-| `apache/spark:4.1.2-python3`-based SparkPi | [](https://hub.docker.com/r/apache/spark/tags?page=1&name=4.1.2-python3)
|
+| `apache/spark:4.2.0-python3`-based SparkPi | [](https://hub.docker.com/r/apache/spark/tags?page=1&name=4.2.0-python3)
|
| `pyspark-connect`-based SparkPi | [](https://hub.docker.com/r/apache/spark-connect-swift/tags?page=1&name=pyspark-connect)
|
| `Swift`-based SparkPi | [](https://hub.docker.com/r/apache/spark-connect-swift/tags?page=1&name=pi)
|
@@ -23,7 +23,7 @@ For example, a user can develop and ship a lightweight
Swift-based SparkPi app.
## Requirements
-- [Apache Spark 4.1.2 (May
2026)](https://github.com/apache/spark/releases/tag/v4.1.2)
+- [Apache Spark 4.2.0 (July
2026)](https://github.com/apache/spark/releases/tag/v4.2.0)
- [Swift 6.3.2 (May 2026)](https://swift.org)
- [gRPC Swift 2.4.2 (June
2026)](https://github.com/grpc/grpc-swift-2/releases/tag/2.4.2)
- [gRPC Swift Protobuf 2.4.1 (June
2026)](https://github.com/grpc/grpc-swift-protobuf/releases/tag/2.4.1)
@@ -101,7 +101,7 @@ Run your Swift application.
```bash
$ swift run
...
-Connected to Apache Spark 4.1.2 Server
+Connected to Apache Spark 4.2.0 Server
EXECUTE: DROP TABLE IF EXISTS t
EXECUTE: CREATE TABLE IF NOT EXISTS t(a INT) USING ORC
EXECUTE: INSERT INTO t VALUES (1), (2), (3)
diff --git a/Sources/SparkConnect/Documentation.docc/Examples.md
b/Sources/SparkConnect/Documentation.docc/Examples.md
index a814d5e..8630c74 100644
--- a/Sources/SparkConnect/Documentation.docc/Examples.md
+++ b/Sources/SparkConnect/Documentation.docc/Examples.md
@@ -7,7 +7,7 @@ This document provides an overview of the example applications
inside [Examples]
Start a Spark Connect Server:
```bash
-docker run -it --rm -p 15002:15002 apache/spark:4.1.2 bash -c
"/opt/spark/sbin/start-connect-server.sh --wait -c spark.log.level=ERROR"
+docker run -it --rm -p 15002:15002 apache/spark:4.2.0 bash -c
"/opt/spark/sbin/start-connect-server.sh --wait -c spark.log.level=ERROR"
```
## Basic Application Example
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]