Expand description
Window Function packages for DataFusion.
This crate contains a collection of various window function packages for DataFusion, implemented using the extension API.
Modules§
- cume_
dist cume_dist
window function implementation- expr_fn
- Fluent-style API for creating
Expr
s - lead_
lag lead
andlag
window function implementations- macros
- Convenience macros for defining a user-defined window function and associated expression API (fluent style).
- nth_
value nth_value
window function implementation- ntile
ntile
window function implementation- planner
- SQL planning extensions like
WindowFunctionPlanner
- rank
- Implementation of
rank
,dense_rank
, andpercent_rank
window functions, which can be evaluated at runtime during query execution. - row_
number row_number
window function implementation
Macros§
- create_
udwf_ expr - Create a
WindowFunction
expression that exposes a fluent API which you can use to build more complex expressions. - define_
udwf_ and_ expr - Defines a user-defined window function.
- get_
or_ init_ udwf - Lazily initializes a user-defined window function exactly once when called concurrently. Repeated calls return a reference to the same instance.
Functions§
- all_
default_ window_ functions - Returns all default window functions
- register_
all - Registers all enabled packages with a
FunctionRegistry