Fix Kotlin example code which does not compile
This kotlin code does not compile: Overload resolution ambiguity. All these functions match. default <R> RowsFetchSpec<R> map(Function<Row, R> mappingFunction) <R> RowsFetchSpec<R> map(BiFunction<Row, RowMetadata, R> mappingFunction); Closes gh-26016
This commit is contained in:
committed by
Sébastien Deleuze
parent
411539ffef
commit
2214ff8ce0
@@ -6805,7 +6805,7 @@ The following example extracts the `id` column and emits its value:
|
||||
.Kotlin
|
||||
----
|
||||
val names = client.sql("SELECT name FROM person")
|
||||
.map{ it.get("id", String.class) }
|
||||
.map{ row: Row -> row.get("id", String.class) }
|
||||
.flow()
|
||||
----
|
||||
|
||||
|
||||
Reference in New Issue
Block a user