Skip to content

Commit 7a8eb96

Browse files
committed
[MINOR] Revise SparkSession documentation
1 parent a87fc42 commit 7a8eb96

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Sources/SparkConnect/Documentation.docc/GettingStarted.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ targets: [
3636
```swift
3737
import SparkConnect
3838

39-
let spark = SparkSession.builder()
39+
let spark = try await SparkSession
40+
.builder
4041
.appName("MySwiftApp")
4142
.remote("sc://localhost:15002")
42-
.build()
43+
.getOrCreate()
4344
```
4445

4546
### 2. DataFrame Operations

Sources/SparkConnect/Documentation.docc/SparkSession.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ The entry point for SparkConnect functionality.
99
### Creating a SparkSession
1010

1111
```swift
12-
let spark = SparkSession.builder()
13-
.appName("My Swift Spark App")
12+
let spark = try await SparkSession
13+
.builder
14+
.appName("MySwiftSparkApp")
1415
.remote("sc://localhost:15002")
15-
.build()
16+
.getOrCreate()
1617
```
1718

1819
### Basic Usage

0 commit comments

Comments
 (0)