File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Sources/SparkConnect/Documentation.docc Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,11 @@ targets: [
36
36
``` swift
37
37
import SparkConnect
38
38
39
- let spark = SparkSession.builder ()
39
+ let spark = try await SparkSession
40
+ .builder
40
41
.appName (" MySwiftApp" )
41
42
.remote (" sc://localhost:15002" )
42
- .build ()
43
+ .getOrCreate ()
43
44
```
44
45
45
46
### 2. DataFrame Operations
Original file line number Diff line number Diff line change @@ -9,10 +9,11 @@ The entry point for SparkConnect functionality.
9
9
### Creating a SparkSession
10
10
11
11
``` swift
12
- let spark = SparkSession.builder ()
13
- .appName (" My Swift Spark App" )
12
+ let spark = try await SparkSession
13
+ .builder
14
+ .appName (" MySwiftSparkApp" )
14
15
.remote (" sc://localhost:15002" )
15
- .build ()
16
+ .getOrCreate ()
16
17
```
17
18
18
19
### Basic Usage
You can’t perform that action at this time.
0 commit comments