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-
31package org.jetbrains.kotlinx.dataframe.plugin.impl
42
53import org.jetbrains.kotlin.fir.analysis.checkers.fullyExpandedClassId
@@ -19,6 +17,7 @@ data class PluginDataFrameSchema(
1917 companion object {
2018 val EMPTY = PluginDataFrameSchema (emptyList())
2119 }
20+
2221 fun columns (): List <SimpleCol > {
2322 return columns
2423 }
@@ -39,9 +38,11 @@ private fun List<SimpleCol>.asString(indent: String = ""): String {
3938 is SimpleFrameColumn -> {
4039 " ${it.name} : *\n " + it.columns().asString(" $indent " )
4140 }
41+
4242 is SimpleColumnGroup -> {
4343 " ${it.name} :\n " + it.columns().asString(" $indent " )
4444 }
45+
4546 is SimpleDataColumn -> {
4647 " ${it.name} : ${it.type.type.renderReadable()} "
4748 }
@@ -129,6 +130,7 @@ private fun KotlinTypeFacade.makeNullable(column: SimpleCol): SimpleCol {
129130 is SimpleColumnGroup -> {
130131 SimpleColumnGroup (column.name, column.columns().map { makeNullable(it) })
131132 }
133+
132134 is SimpleFrameColumn -> column
133135 is SimpleDataColumn -> SimpleDataColumn (column.name, column.type.changeNullability { true })
134136 }
You can’t perform that action at this time.
0 commit comments