Kotlin DataFrame Compiler Plugin
Kotlin DataFrame compiler plugin: available in Gradle projects, is coming to Kotlin Notebook and Maven projects soon.
Check out this video that shows how expressions update the schema of a dataframe:
Setup
Install IntelliJ IDEA EAP. Going forward, compiler plugin updates will be released with Kotlin plugin updates. Next release: 2025.2
Setup plugins in build.gradle.kts
:
Setup library dependency:
Plugin is released as a dev version, available in this maven repository:
Setup repositories for dependencies in build.gradle.kts
:
Setup repositories for plugins in settings.gradle.kts
Add this line to gradle.properties
:
Disabling incremental compilation will no longer be necessary when https://youtrack.jetbrains.com/issue/KT-66735 is resolved.
Features overview
Static interpretation of DataFrame API
Plugin evaluates dataframe operations, given compile-time known arguments such as constant String, resolved types, property access calls. It updates the return type of the function call to provide properties that match column names and types. The goal is to reflect the result of operations you apply to dataframe in types and have convenient typed API
The schema of DataFrame, as the compiler plugin sees it, is displayed when you hover on an expression or variable:

@DataSchema declarations
Untyped DataFrame can be assigned a data schema - top-level interface or class that describes names and types of columns in the dataframe.
Learn more about data schema declarations