-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Labels
Compiler pluginAnything related to the DataFrame Compiler PluginAnything related to the DataFrame Compiler PluginbugSomething isn't workingSomething isn't working
Milestone
Description
For example expected type of a is DataColumn<DataFrame<LocalType>?>, but schema - FrameColumn.
val df = dataFrameOf("a" to columnOf(List(4) {
dataFrameOf(
"c" to columnOf(2)
)
}))
val res = df.convert { a }.with { it.takeIf { it.rowsCount() % 2 == 0 } }
res[0].a?.c
// FieldKind.of is wrong =(
println(res.compileTimeSchema())For now this logic is used in toDataFrame (library), compileTimeSchema (library), and extract schema from DataSchema declarations (compiler plugin, maybe in Jupyter integration)
Potential problems:
- Incorrect compileTimeSchema
- Extension properties for res are correct, but after another operation plugin will perform extract schema and probably some kind of runtime exception could happen while accessing
a/cin df1
val df1 = res.add("addMe") { 123 }
Metadata
Metadata
Assignees
Labels
Compiler pluginAnything related to the DataFrame Compiler PluginAnything related to the DataFrame Compiler PluginbugSomething isn't workingSomething isn't working