Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/source/user-guide/latest/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,19 @@ incompatible expressions.
| VariancePop | | Yes | |
| VarianceSamp | | Yes | |

## Window Functions

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andygrove I'm preparing set of tests today to get real status for windows, let me get back to this PR later today

Comet supports using aggregate functions within window contexts with PARTITION BY and ORDER BY clauses. Window frames (ROWS and RANGE) are supported with various bounds (UNBOUNDED PRECEDING, UNBOUNDED FOLLOWING, CURRENT ROW, and numeric offsets).

| Expression | Spark-Compatible? | Compatibility Notes |
| ---------- | ----------------- | -------------------------------------------- |
| Count | Yes | Aggregate function used in window context |
| Max | Yes | Aggregate function used in window context |
| Min | Yes | Aggregate function used in window context |
| Sum | Yes | Aggregate function used in window context |

**Note:** Dedicated window functions such as `rank`, `dense_rank`, `row_number`, `lag`, `lead`, `ntile`, `cume_dist`, `percent_rank`, and `nth_value` are not currently supported and will fall back to Spark.

## Array Expressions

| Expression | Spark-Compatible? | Compatibility Notes |
Expand Down