Skip to content

[Compiler plugin] Setup call transformer pipeline to handle (...) -> DataRow functions #918

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
Nov 12, 2024

Conversation

koperagen
Copy link
Collaborator

@koperagen koperagen commented Oct 11, 2024

This open up possibility to support DataFrame.aggregate -> DataRow and other IO functions. Implemented DataRow.readJsonStr as an example

@koperagen koperagen added the Compiler plugin Anything related to the DataFrame Compiler Plugin label Oct 11, 2024
Copy link
Contributor

Generated sources will be updated after merging this PR.
Please inspect the changes in here.

@koperagen koperagen requested a review from Jolanrensen October 15, 2024 16:23
Copy link
Collaborator

@Jolanrensen Jolanrensen left a comment

Choose a reason for hiding this comment

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

cool :)


fun box(): String {
val row = DataRow.readJsonStr(text)
row.a
Copy link
Collaborator

Choose a reason for hiding this comment

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

This would be so awesome for an ordinary Map :o I wonder if we could have a plugin which just does this for Maps. It's like js/python but safe :P

@koperagen koperagen self-assigned this Nov 12, 2024
@koperagen koperagen added this to the 0.15.0 milestone Nov 12, 2024
@koperagen koperagen merged commit 170691f into master Nov 12, 2024
6 checks passed
@Jolanrensen Jolanrensen deleted the datarow-refine branch November 12, 2024 19:49
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