File tree 1 file changed +5
-0
lines changed
core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/columns
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ import org.jetbrains.kotlinx.dataframe.kind
9
9
import kotlin.reflect.KClass
10
10
import kotlin.reflect.KType
11
11
import kotlin.reflect.full.isSubclassOf
12
+ import kotlin.reflect.full.isSubtypeOf
13
+ import kotlin.reflect.typeOf
12
14
13
15
internal abstract class DataColumnImpl <T >(
14
16
protected val values : List <T >,
@@ -22,6 +24,9 @@ internal abstract class DataColumnImpl<T>(
22
24
when {
23
25
this == null -> type.isMarkedNullable
24
26
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
+
25
30
this .isPrimitiveArray ->
26
31
type.isPrimitiveArray &&
27
32
this !! ::class .qualifiedName == type.classifier?.let { (it as KClass <* >).qualifiedName }
You can’t perform that action at this time.
0 commit comments