Crate datafusion_functions_window

Source
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 Exprs
lead_lag
lead and lag 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, and percent_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