File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
plugins/kotlin-dataframe/src/org/jetbrains/kotlinx/dataframe/plugin/impl Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
- @file:Suppress(" INVISIBLE_REFERENCE" , " CANNOT_OVERRIDE_INVISIBLE_MEMBER" )
2
-
3
1
package org.jetbrains.kotlinx.dataframe.plugin.impl
4
2
5
3
import org.jetbrains.kotlin.fir.analysis.checkers.fullyExpandedClassId
@@ -19,6 +17,7 @@ data class PluginDataFrameSchema(
19
17
companion object {
20
18
val EMPTY = PluginDataFrameSchema (emptyList())
21
19
}
20
+
22
21
fun columns (): List <SimpleCol > {
23
22
return columns
24
23
}
@@ -39,9 +38,11 @@ private fun List<SimpleCol>.asString(indent: String = ""): String {
39
38
is SimpleFrameColumn -> {
40
39
" ${it.name} : *\n " + it.columns().asString(" $indent " )
41
40
}
41
+
42
42
is SimpleColumnGroup -> {
43
43
" ${it.name} :\n " + it.columns().asString(" $indent " )
44
44
}
45
+
45
46
is SimpleDataColumn -> {
46
47
" ${it.name} : ${it.type.type.renderReadable()} "
47
48
}
@@ -129,6 +130,7 @@ private fun KotlinTypeFacade.makeNullable(column: SimpleCol): SimpleCol {
129
130
is SimpleColumnGroup -> {
130
131
SimpleColumnGroup (column.name, column.columns().map { makeNullable(it) })
131
132
}
133
+
132
134
is SimpleFrameColumn -> column
133
135
is SimpleDataColumn -> SimpleDataColumn (column.name, column.type.changeNullability { true })
134
136
}
You can’t perform that action at this time.
0 commit comments