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_distwindow function implementation- expr_fn
- Fluent-style API for creating
Exprs - lead_
lag leadandlagwindow function implementations- macros
- Convenience macros for defining a user-defined window function and associated expression API (fluent style).
- nth_
value nth_valuewindow function implementation- ntile
ntilewindow function implementation- planner
- SQL planning extensions like
WindowFunctionPlanner - rank
- Implementation of
rank,dense_rank, andpercent_rankwindow functions, which can be evaluated at runtime during query execution. - row_
number row_numberwindow function implementation
Macros§
- create_
udwf_ expr - Create a
WindowFunctionexpression 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