Skip to main content
Reference
Their ordering is independent of the query’s final presentation order. See window queries for frame syntax.

Ranking and buckets

RANK and DENSE_RANK treat equal ordering values as peers. ROW_NUMBER needs a tie-breaker for deterministic positions.

Frame-sensitive value functions

LAST_VALUE returns the last value of its frame, which is not necessarily the last row of the whole partition. State the frame explicitly when you want a whole-partition result.
LAG or LEAD outside a partition returns its supplied default, otherwise NULL. Explicit IGNORE NULLS and RESPECT NULLS clauses are currently rejected by Native compilation. A window result cannot be filtered with QUALIFY; wrap it in a subquery and filter outside it.
Last modified on November 23, 2026