Skip to content

Commit d62e3af

Browse files
authored
Update README.md
1 parent b4bb8ce commit d62e3af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ val spark = SparkSession
8787
```kotlin
8888
spark.toDS("a" to 1, "b" to 2)
8989
```
90-
The example above produces `Dataset<Pair<String, Int>>`.
90+
The example above produces `Dataset<Pair<String, Int>>`. While Kotlin Pairs and Triples are supported, Scala Tuples are reccomended for better support.
9191

9292
### Null safety
9393
There are several aliases in API, like `leftJoin`, `rightJoin` etc. These are null-safe by design.
@@ -104,7 +104,7 @@ After work block ends, `spark.stop()` is called automatically.
104104
```kotlin
105105
withSpark {
106106
dsOf(1, 2)
107-
.map { it to it }
107+
.map { it X it } // creates Tuple2<Int, Int>
108108
.show()
109109
}
110110
```

0 commit comments

Comments
 (0)