Skip to content

Commit 92e9e78

Browse files
committed
referring to wiki in readme
1 parent 92e480b commit 92e9e78

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,12 @@ recommended for better support.
126126
There are several aliases in API, like `leftJoin`, `rightJoin` etc. These are null-safe by design.
127127
For example, `leftJoin` is aware of nullability and returns `Dataset<Pair<LEFT, RIGHT?>>`.
128128
Note that we are forcing `RIGHT` to be nullable for you as a developer to be able to handle this situation.
129-
`NullPointerException`s are hard to debug in Spark, and we doing our best to make them as rare as possible.
129+
`NullPointerException`s are hard to debug in Spark, and we're doing our best to make them as rare as possible.
130130

131+
In Spark, you might also come across Scala-native `Option<*>` or Java-compatible `Optional<*>` classes.
132+
We provide `getOrNull()` and `getOrElse()` functions for these to use Kotlin's null safety for good.
133+
134+
Similarly, you can also create `Option<*>`s and `Optional<*>`s like `T?.toOptional()` if a Spark function requires it.
131135
### withSpark function
132136

133137
We provide you with useful function `withSpark`, which accepts everything that may be needed to run Spark — properties, name, master location and so on. It also accepts a block of code to execute inside Spark context.

0 commit comments

Comments
 (0)