Kotlin / Kotlin/dataframe

Bug: Cannot use columns with `RequiresOptIn` types in Notebook

Open
#1,335 2 comments 0 reactions 0 assignees View on GitHub
bug Tooling wontfix
Dominant language
Kotlin
Stars
1.1k
Forks
83
Avg merge
4d 12h
Merged PRs (30d)
30

Description

In notebooks, whenever an accessor is generated for an experimental type that requires `@OptIn`, we get compiler errors:

Image

This makes sense, as each usage of that type, or the entire snippet, would need to be annotated with `@OptIn`, however, that does make it currently impossible to store any experimental type in a DataFrame and use it.

We could try to ask the notebook team what to do about it, or simply introduce a list of opt-in classes for `dataFrameConfig` in notebooks.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the notebook compiler errors when a DataFrame contains a type requiring @OptIn, then inspect the notebook dataFrameConfig entry point. Clarify with the notebook team whether notebook-wide opt-ins or a configured list of opt-in classes is expected; done means experimental types can be stored in and accessed from DataFrames without compiler errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.