-
Notifications
You must be signed in to change notification settings - Fork 73
Make DataFrame inferred type in compile-time #1214
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
Comments
Hi there :) For columns to be inferred in your normal Kotlin project, you will need the Compiler plugin. This will provide column accessors for any If you are using an older version of DataFrame, Kotlin, or IntelliJ and you cannot yet use the compiler plugin, we also have an older Gradle/KSP plugin which can also generate column accessors, but those won't be updated on the fly after running operations. So it can only generate accessors when a data schema is defined. Hope this can get you started! |
@Jolanrensen do you have any example on GitHub for Compiler plugin? I could not find Kotlin DataFrame compiler plugin example from dataframe repository. |
hi, from docs
plugin not compatible with kotlin 2.1.20 !! |
@linux-china You're right, we didn't put an example there yet, we'll certainly add it soon, once everything is a bit more stable :) (we do have an older example project here but it's out-of-date) In the meantime @Kotlin-GDE is right, following https://kotlin.github.io/dataframe/compiler-plugin.html#setup should get you started (if you exactly follow each step of course), this means having the right IDE version, Kotlin version, etc. |
when using dataframe without kotlin notbook, columns not inferred in compile-time
how to fix that ?
The text was updated successfully, but these errors were encountered: