File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,17 @@ internal open class DataFrameReceiver<T>(
36
36
private val unresolvedColumnsPolicy : UnresolvedColumnsPolicy
37
37
) : DataFrameReceiverBase<T>(source.unbox()), SingleColumn<DataRow<T>> {
38
38
39
- private fun <R > DataColumn<R>?.check (path : ColumnPath ): DataColumn <R >? =
39
+ private fun <R > DataColumn<R>?.check (path : ColumnPath ): DataColumn <R > =
40
40
when (this ) {
41
41
null -> when (unresolvedColumnsPolicy) {
42
- UnresolvedColumnsPolicy .Create , UnresolvedColumnsPolicy .Skip -> MissingColumnGroup <Any >(path, this @DataFrameReceiver).asDataColumn().cast()
42
+ UnresolvedColumnsPolicy .Create , UnresolvedColumnsPolicy .Skip -> MissingColumnGroup <Any >(
43
+ path,
44
+ this @DataFrameReceiver
45
+ ).asDataColumn().cast()
46
+
43
47
UnresolvedColumnsPolicy .Fail -> error(" Column $path not found" )
44
48
}
49
+
45
50
is MissingDataColumn -> this
46
51
is ColumnGroup <* > -> ColumnGroupWithParent (null , this ).asDataColumn().cast()
47
52
else -> this
You can’t perform that action at this time.
0 commit comments