Skip to content

[Compiler plugin] Support move to and insert at #1130

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

Merged
merged 1 commit into from
Apr 22, 2025
Merged

Conversation

koperagen
Copy link
Collaborator

No description provided.

@koperagen koperagen added the Compiler plugin Anything related to the DataFrame Compiler Plugin label Apr 16, 2025
@koperagen koperagen added this to the 1.0.0-Beta1 (0.16) milestone Apr 16, 2025
@koperagen koperagen requested a review from zaleslaw April 16, 2025 14:56
@koperagen koperagen self-assigned this Apr 16, 2025

override fun Arguments.interpret(): PluginDataFrameSchema {
return receiver.df.asDataFrame()
.insert(receiver.column.asDataColumn()).at(position)
Copy link
Collaborator

@zaleslaw zaleslaw Apr 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we call somehow to calculate the schema and other functions? Just a new idea for me

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For operations that only operate on column structure or names: move, rename, flatten, remove, group / ungroup, it's possible. insert here is a bit unique because this way you can only insert this special column converted from SimpleCol.

@koperagen koperagen merged commit 9f92861 into master Apr 22, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compiler plugin Anything related to the DataFrame Compiler Plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants