docs: Document WindowFn and add comments - #24118
Conversation
b7418cb to
69c5f08
Compare
WindowFn and its variantsWindowFn to WindowFnState and add comments
69c5f08 to
eaa18f9
Compare
WindowFn to WindowFnState and add commentsWindowFn and add comments
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
eaa18f9 to
f368ba0
Compare
| /// State for incrementally evaluating a window function | ||
| /// within a partition, created by [`WindowExpr::create_window_fn`]. | ||
| #[derive(Debug)] | ||
| pub enum WindowFn { |
There was a problem hiding this comment.
This struct is not technically pub as it is in a mod (not `pub mod), though it somehow appears in the WindowExpr trait 🤷
It might be nice to fix the naming but I think for now just documenting it is helpful
WindowFn and add commentsWindowFn and add comments
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #24118 +/- ##
==========================================
- Coverage 81.14% 81.14% -0.01%
==========================================
Files 1110 1110
Lines 386137 386137
Branches 386137 386137
==========================================
- Hits 313347 313334 -13
- Misses 54324 54335 +11
- Partials 18466 18468 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
nuno-faria
left a comment
There was a problem hiding this comment.
Thanks @alamb, LGTM. One question: here "partition" refers to the logical partitions of the window function and not concurrency partitions right?
| /// [`PartitionEvaluator`]. Despite the name, it is used for all window | ||
| /// function that is not an aggregate function. |
There was a problem hiding this comment.
nit: "... for all window function that is not aggregate function" -> "for all window functions that are not aggregate functions"?
|
Thank you for the review @nuno-faria |
Which issue does this PR close?
Rationale for this change
The
WindowFnenum indatafusion-physical-exprhas no documentation, and itsBuiltinvariant name is misleading:What changes are included in this PR?
Doc comments on
WindowFnand its two variants, including links to theWindowExprimplementations that create each variant.Are these changes tested?
By CI
Are there any user-facing changes?
Improved API documentation only; no code changes.