Skip to content

Commit 2214ff8

Browse files
mindhaqsdeleuze
authored andcommitted
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
1 parent 411539f commit 2214ff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docs/asciidoc/data-access.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6805,7 +6805,7 @@ The following example extracts the `id` column and emits its value:
68056805
.Kotlin
68066806
----
68076807
val names = client.sql("SELECT name FROM person")
6808-
.map{ it.get("id", String.class) }
6808+
.map{ row: Row -> row.get("id", String.class) }
68096809
.flow()
68106810
----
68116811

0 commit comments

Comments
 (0)