File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
plugins/kotlin-dataframe/src/org/jetbrains/kotlinx/dataframe/plugin/impl Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class Flatten0 : AbstractSchemaModificationInterpreter() {
28
28
val Arguments .columns: ColumnsResolver by arg()
29
29
30
30
override fun Arguments.interpret (): PluginDataFrameSchema {
31
- val columns = columns.resolve(receiver).map { pathOf( * it.path.path.toTypedArray()) }
31
+ val columns = columns.resolve(receiver).map { it.path }
32
32
return receiver
33
33
.asDataFrame()
34
34
.flatten(keepParentNameForColumns, separator) { columns.toColumnSet() }
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class ToTop : AbstractSchemaModificationInterpreter() {
25
25
val Arguments .receiver: MoveClauseApproximation by arg()
26
26
27
27
override fun Arguments.interpret (): PluginDataFrameSchema {
28
- val columns = receiver.columns.resolve(receiver.df).map { pathOf( * it.path.path.toTypedArray()) }
28
+ val columns = receiver.columns.resolve(receiver.df).map { it.path }
29
29
return receiver.df.asDataFrame().move { columns.toColumnSet() }.toTop().toPluginDataFrameSchema()
30
30
}
31
31
}
Original file line number Diff line number Diff line change 1
1
package org.jetbrains.kotlinx.dataframe.plugin.impl.data
2
2
3
- data class ColumnPathApproximation (val path : List <String >)
3
+ import org.jetbrains.kotlinx.dataframe.columns.ColumnPath
4
+
5
+ typealias ColumnPathApproximation = ColumnPath
You can’t perform that action at this time.
0 commit comments