datafusion-extra-functions
Extra aggregate functions for Apache DataFusion. This is not an official Apache Software Foundation release.
Version 0.5.3 supports DataFusion 55.0 and Rust edition 2024.
Installation
Register all functions with your session context:
register_all_extra_functions?;
Available functions
| Function | Description |
|---|---|
mode(expression) |
Returns most frequent value. |
max_by(value, key) |
Returns value at maximum key. |
min_by(value, key) |
Returns value at minimum key. |
skewness(expression) |
Computes skewness. |
kurtosis_pop(expression) |
Computes population excess kurtosis. |
kurtosis(expression) |
Computes sample excess kurtosis. |
SELECT mode(city) FROM visits;
SELECT max_by(user_id, score) FROM results;
SELECT min_by(user_id, score) FROM results;
SELECT skewness(measurement) FROM readings;
SELECT kurtosis_pop(measurement) FROM readings;
SELECT kurtosis(measurement) FROM readings;
Testing