Skip to content
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

[Compiler plugin] Support valueCounts #951

Merged
merged 3 commits into from
Nov 20, 2024
Merged

[Compiler plugin] Support valueCounts #951

merged 3 commits into from
Nov 20, 2024

Conversation

koperagen
Copy link
Collaborator

Important part of this PR is first commit. Other two are rather trivial refactoring.

Inline all trivial delegates:

It was supposed to be a source of truth to help choose correct arguments, but in reality it's more reliable to look at existing interpreters

It was supposed to be a source of truth to help choose correct arguments, but in reality it's more reliable to look at existing interpreters
@koperagen koperagen self-assigned this Nov 19, 2024
@koperagen koperagen added this to the 0.15.0 milestone Nov 19, 2024
@koperagen koperagen added the Compiler plugin Anything related to the DataFrame Compiler Plugin label Nov 19, 2024
@@ -248,6 +249,7 @@ internal inline fun <reified T> String.load(): T {
"Update0" -> Update0()
"Aggregate" -> Aggregate()
"DataFrameOf3" -> DataFrameOf3()
"ValueCounts" -> ValueCounts()
Copy link
Collaborator

Choose a reason for hiding this comment

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

https://kotlin.github.io/dataframe/valuecounts.html - very strange GROUP BY + DISTINCT

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I agree :)

@koperagen koperagen merged commit ec60fd4 into master Nov 20, 2024
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