Skip to content

Commit df076c5

Browse files
committed
Update require.md
1 parent 86810a0 commit df076c5

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

docs/StardustDocs/topics/require.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
Throws an exception if the specified column is missing or its type is not subtype of `C`.
55
From the compiler plugin perspective, a new column will appear in the compile-time schema as a result of this operation.
6-
The aim here is to help incrementally migrate workflows to extension properties API.
6+
The aim here is to help incrementally migrate workflows to [extension properties API](extensionPropertiesApi.md).
77

88
Will work in compiler plugin starting from IntelliJ IDEA 2026.2 and Kotlin 2.4.0.
99

@@ -14,6 +14,11 @@ require { column }
1414
**Related operations**: [](cast.md), [](convertTo)
1515

1616
```kotlin
17+
// Before `require` extension property will not be resolved
18+
// peopleDf.select { name.firstName }
19+
20+
// Require a column with a runtime check
1721
val df = peopleDf.require { "name"["firstName"]<String>() }
22+
// Use extension property after `require`
1823
val v: String = df.name.firstName[0]
1924
```

0 commit comments

Comments
 (0)