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.
Relates to https://github.com/Kotlin/dataframe/issues/713
Given
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 justcol != null
. WhendefaultValue
is used, this is not added to the set oftypes
, skippingguessType
.It can fix 3 tests in https://github.com/Kotlin/dataframe/issues/713