You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-13Lines changed: 24 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,24 +9,28 @@ This is an experimental Swift library to show how to connect to a remote Apache
9
9
So far, this library project is tracking the upstream changes like the [Apache Spark](https://spark.apache.org) 4.0.0 RC4 release and [Apache Arrow](https://arrow.apache.org) project's Swift-support.
## How to use `Spark SQL REPL` via `Spark Connect for Swift`
111
116
112
117
This project also provides `Spark SQL REPL`. You can run it directly from this repository.
113
118
114
-
```
119
+
```bash
115
120
$ swift run
116
121
...
117
-
Build of product 'SQLRepl' complete! (2.33s)
122
+
Build of product 'SparkSQLRepl' complete! (2.33s)
118
123
Connected to Apache Spark 4.0.0 Server
119
124
spark-sql (default)> SHOW DATABASES;
120
125
+---------+
@@ -176,3 +181,9 @@ spark-sql (default)> DROP DATABASE db1 CASCADE;
176
181
++
177
182
spark-sql (default)>exit;
178
183
```
184
+
185
+
You can use `SPARK_REMOTE` to specify the [Spark Connect connection string](https://spark.apache.org/docs/latest/spark-connect-overview.html#set-sparkremote-environment-variable) in order to provide more options.
0 commit comments