-
Notifications
You must be signed in to change notification settings - Fork 75
Closed
Description
Relates to #713
Given
val df = dataFrameOf("firstName", "lastName", "age", "city", "weight", "isHappy")(
"Alice", "Cooper", 15, "London", 54, true,
"Bob", "Dylan", 45, "Dubai", 87, true,
"Charlie", "Daniels", 20, "Moscow", null, false,
"Charlie", "Chaplin", 40, "Milan", null, true,
"Bob", "Marley", 30, "Tokyo", 68, true,
"Alice", "Wolf", 20, null, 55, false,
"Charlie", "Byrd", 30, "Moscow", 90, true
).group("firstName", "lastName").into("name")
---
df.pivot { city }.groupBy { name }.default(0).min()
we get pivoted.city.London.isHappy.type() == typeOf<Boolean>()
, while the column values are: [true, 0, 0, 0, 0, 0, 0]
I narrowed the issue down to concatImpl()
. This collects column types when just col != null
. When defaultValue
is used, this is not added to the set of types
, skipping guessType
.
It can fix 3 tests in #713
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working