Skip to content

Commit 0304ba4

Browse files
committed
Cross-reference use cases with requireColumn in mind
1 parent c036ff2 commit 0304ba4

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

docs/StardustDocs/topics/adjustSchema.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ To match your knowledge with expected real-time [`DataFrame`](DataFrame.md) cont
1414
* [`cast`](cast.md) — change type argument of [`DataFrame`](DataFrame.md) to the expected schema without changing data in [`DataFrame`](DataFrame.md).
1515
* [`convertTo`](convertTo.md) — convert [`DataFrame`](DataFrame.md) contents to match the expected schema.
1616

17+
Alternatively, use [](require.md) to incrementally add type information to compile time schema.

docs/StardustDocs/topics/require.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
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.
66
The aim here is to help incrementally migrate workflows to [extension properties API](extensionPropertiesApi.md).
7+
We recommend considering declaring a [DataSchema](dataSchema.md) and use [](cast.md) or [](convertTo) if you end up with more than a few `requireColumn` calls.
78

89
Will work in compiler plugin starting from IntelliJ IDEA 2026.2 and Kotlin 2.4.0.
910

0 commit comments

Comments
 (0)