Throws an exception if the specified column is missing or its type is not subtype of C.
From the compiler plugin perspective, a new column will appear in the compile-time schema as a result of this operation.
The aim here is to help incrementally migrate workflows to extension properties API.
We recommend considering declaring a DataSchema and use or if you end up with more than a few requireColumn calls.
Will work in compiler plugin starting from IntelliJ IDEA 2026.2 and Kotlin 2.4.0.
requireColumn { column }
// Before `requireColumn` extension property will not be resolved
// peopleDf.select { name.firstName }
// Require a column with a runtime check
val df = peopleDf.requireColumn { "name"["firstName"]<String>() }
// Use extension property after `requireColumn`
val v: String = df.name.firstName[0]