-
Notifications
You must be signed in to change notification settings - Fork 73
Add initial support for CS DSL in the compiler plugin #783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
kotlin.code.style=official | ||
kotlinVersion=2.0.20-dev-5379 | ||
kotlinVersion=2.0.20-Beta2-78 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,21 +12,21 @@ import org.jetbrains.kotlinx.dataframe.plugin.impl.dataFrame | |
|
||
class Group0 : AbstractInterpreter<GroupClauseApproximation>() { | ||
val Arguments.receiver: PluginDataFrameSchema by dataFrame() | ||
val Arguments.columns: List<ColumnWithPathApproximation> by arg() | ||
val Arguments.columns: ColumnsResolver by arg() | ||
|
||
override fun Arguments.interpret(): GroupClauseApproximation { | ||
return GroupClauseApproximation(receiver, columns) | ||
} | ||
} | ||
|
||
class GroupClauseApproximation(val df: PluginDataFrameSchema, val columns: List<ColumnWithPathApproximation>) | ||
class GroupClauseApproximation(val df: PluginDataFrameSchema, val columns: ColumnsResolver) | ||
|
||
class Into0 : AbstractSchemaModificationInterpreter() { | ||
val Arguments.receiver: GroupClauseApproximation by arg() | ||
val Arguments.column: String by arg() | ||
|
||
override fun Arguments.interpret(): PluginDataFrameSchema { | ||
val grouped = groupImpl(receiver.df.columns(), receiver.columns.mapTo(mutableSetOf()) { it.path.path }, column) | ||
val grouped = groupImpl(receiver.df.columns(), receiver.columns.resolve(receiver.df).mapTo(mutableSetOf()) { it.path.path }, column) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that is reciever.df here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given this call: |
||
return grouped | ||
} | ||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.