File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
core/generated-sources/src
main/kotlin/org/jetbrains/kotlinx/dataframe/impl/columns
test/kotlin/org/jetbrains/kotlinx/dataframe/api Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -43,4 +43,6 @@ internal class ColumnAccessorImpl<T>(val path: ColumnPath) : ColumnAccessor<T> {
43
43
override fun getValue (row : AnyRow ) = path.getValue(row) as T
44
44
45
45
override fun getValueOrNull (row : AnyRow ) = path.getValueOrNull(row) as T
46
+
47
+ override fun toString (): String = path().toString()
46
48
}
Original file line number Diff line number Diff line change @@ -49,6 +49,9 @@ class GetTests {
49
49
shouldThrow<IllegalArgumentException > { row.getValue(c) }
50
50
shouldThrow<IllegalArgumentException > { row.getValue(A ::c) }
51
51
52
+ val throwable = shouldThrow<IllegalArgumentException > { df[column<Int >(" c" )] }
53
+ throwable.message shouldContain " Column not found: '[c]'"
54
+
52
55
val added = df.add(A ::c) { " 3" }[0 ]
53
56
54
57
shouldThrow<ClassCastException > { added.getValue(c) + 1 }
You can’t perform that action at this time.
0 commit comments