-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add initial support for CS DSL in the compiler plugin #783
Conversation
…olver to further support CS DSL
261de17
to
e6b4152
Compare
Generated sources will be updated after merging this PR. |
|
||
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 comment
The 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 comment
The reason will be displayed to describe this comment to others. Learn more.
Given this call:
df.group { a }.into("abc")
receiver = df.group { a }
. Because it's a function call, its result is also interpreted. It becames GroupClauseApproximation, and so receiver.df
is df.group { a }
Receiver is a special name for "this"
No description provided.