Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
A window specification that defines the partitioning, ordering, and frame boundaries.
Changed in Databricks Runtime 13.0: Supports Spark Connect.
Use the static methods in Window to create a WindowSpec.
Methods
| Method | Description |
|---|---|
orderBy(*cols) |
Defines the ordering columns in a WindowSpec. |
partitionBy(*cols) |
Defines the partitioning columns in a WindowSpec. |
rangeBetween(start, end) |
Defines the frame boundaries, from start (inclusive) to end (inclusive), using range-based offsets from the current row's ORDER BY value. |
rowsBetween(start, end) |
Defines the frame boundaries, from start (inclusive) to end (inclusive), using row-based offsets from the current row. |