Kotlin / dataframe

Structured data processing in Kotlin
https://kotlin.github.io/dataframe/overview.html
Apache License 2.0
763 stars 48 forks source link

`columnOf(arrayOf(1))` type inferred as `Array<*>` #679

Open Jolanrensen opened 2 months ago

Jolanrensen commented 2 months ago

Probably related to https://github.com/Kotlin/dataframe/issues/678.

columnOf(arrayOf(1)).type shouldBe typeOf<Array<Int>>() but is Array<*> instead.

Other cases, like columnOf(intArrayOf(1)) or columnOf(arrayOf(1, null)) work fine.

DataColumn.createValueColumn("c", listOf(arrayOf(1))) also works fine.

My theory is that it occurs because, due to https://github.com/Kotlin/dataframe/issues/678, the classifier of the Array<Int> becomes IntArray, which has no type arguments. Still, it needs to be investigated.