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: [
3636``` swift
3737import 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments