Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions dataframe-compiler-plugin-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ dependencies {
exclude(group = "ch.randelshofer", module = "fastdoubleparser")
exclude(group = "io.github.oshai", module = "kotlin-logging-jvm")
}

// we assume Kotlin plugin has reflect dependency - we're not bringing our own version
testImplementation(kotlin("reflect"))
testImplementation(kotlin("test"))
}

tasks.withType<ShadowJar> {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package org.jetbrains.kotlinx.dataframe

import org.jetbrains.kotlinx.dataframe.api.asColumn
import org.jetbrains.kotlinx.dataframe.api.convert
import org.jetbrains.kotlinx.dataframe.api.dataFrameOf
import org.jetbrains.kotlinx.dataframe.api.map
import org.jetbrains.kotlinx.dataframe.api.with
import kotlin.test.Test

// Testing that even excluding dependencies required API still works without exceptions
class PluginApiUsages {
@Test
fun convertWith() {
dataFrameOf("a" to listOf("123"))
.convert { col("a") }
.with { it.toString() }
}

@Test
fun convertAsColumn() {
dataFrameOf("a" to listOf("123"))
.convert { col("a") }
.asColumn { col -> col.map { it.toString() } }
}
}
Loading