Skip to content

Notebooks fail with T : Comparable<T & Any>? notation #1116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Jolanrensen opened this issue Apr 2, 2025 · 0 comments
Open

Notebooks fail with T : Comparable<T & Any>? notation #1116

Jolanrensen opened this issue Apr 2, 2025 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@Jolanrensen
Copy link
Collaborator

Jolanrensen commented Apr 2, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants