File tree 1 file changed +2
-1
lines changed
core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/columns
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import org.jetbrains.kotlinx.dataframe.DataColumn
5
5
import org.jetbrains.kotlinx.dataframe.api.dataFrameOf
6
6
import org.jetbrains.kotlinx.dataframe.impl.isArray
7
7
import org.jetbrains.kotlinx.dataframe.impl.isPrimitiveArray
8
+ import org.jetbrains.kotlinx.dataframe.kind
8
9
import kotlin.reflect.KClass
9
10
import kotlin.reflect.KType
10
11
import kotlin.reflect.full.isSubclassOf
@@ -37,7 +38,7 @@ internal abstract class DataColumnImpl<T>(
37
38
if (BuildConfig .DEBUG ) {
38
39
require(values.all { it matches type }) {
39
40
val types = values.map { if (it == null ) " Nothing?" else it!! ::class .simpleName }.distinct()
40
- " Values of column '$name ' have types '$types ' which are not compatible given with column type '$type '"
41
+ " Values of $kind '$name ' have types '$types ' which are not compatible given with column type '$type '"
41
42
}
42
43
}
43
44
}
You can’t perform that action at this time.
0 commit comments