File tree Expand file tree Collapse file tree
core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/columns Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ import org.jetbrains.kotlinx.dataframe.kind
99import kotlin.reflect.KClass
1010import kotlin.reflect.KType
1111import kotlin.reflect.full.isSubclassOf
12+ import kotlin.reflect.full.isSubtypeOf
13+ import kotlin.reflect.typeOf
1214
1315internal abstract class DataColumnImpl <T >(
1416 protected val values : List <T >,
@@ -22,6 +24,9 @@ internal abstract class DataColumnImpl<T>(
2224 when {
2325 this == null -> type.isMarkedNullable
2426
27+ // special case since functions are often stored as a $$Lambda$... class, the subClassOf check would fail
28+ this is Function <* > && type.isSubtypeOf(typeOf<Function <* >? > ()) -> true
29+
2530 this .isPrimitiveArray ->
2631 type.isPrimitiveArray &&
2732 this !! ::class .qualifiedName == type.classifier?.let { (it as KClass <* >).qualifiedName }
You can’t perform that action at this time.
0 commit comments