Description
Introduced by #1108
min
, max
, median
, and percentile
in notebooks (k1) throw "IllegalStateException: null DefinitelyNotNullType for 'T'", exception while analyzing expression
This cannot be fixed on our side but is tracked here: KT-76441.
I tried bumping to Kotlin 2.1.20, but that didn't help.
It should be fixed once k2 mode works in notebooks and Dataframe works in it as well (there are some known issues with extension properties, and service loaders for instance).
If you need to use these functions in your notebook, you can try this dev version:
%use dataframe(v=1.0.0-dev-7089)
.
It removes the & Any
return type by making the functions not allow nullable columns at all, avoiding the issue.
I created a shortcut for KotlinConf 2025 which use:
- dataframe 1.0.0-dev-7089
- kandy 0.8.1-dev-67
- kandy stats 0.4.2-dev-2
Simply write: %use dataframe@kc25, kandy@kc25, kandy-geo@kc25
SampleNotebooksTests
temporarily ignore this exception.