**Is your feature request related to a problem or challenge? Please describe what you are trying to do.** complete description later. **Describe the solution you'd like** A clear and concise description of what you want to happen. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. **Additional context** Add any other context or screenshots about the feature request here.
Activity
[-]var(distinct) support[/-][+]`var(distinct)` support[/+]Jefffrey commentedon Dec 10, 2025
Checklist of things needed to be implemented. For reference existing implementation:
https://github.com/apache/datafusion/blob/2a08013af3ccf703bee202c959b40bb0d35bdea1/datafusion/functions-aggregate/src/variance.rs
Distinct accumulator for variance, see example for median:
datafusion/datafusion/functions-aggregate/src/median.rs
Lines 511 to 542 in 2a08013
Make sure to wire distinct accumulator into the UDAF:
datafusion/datafusion/functions-aggregate/src/median.rs
Lines 151 to 184 in 2a08013
datafusion/datafusion/functions-aggregate/src/median.rs
Lines 132 to 149 in 2a08013
Add tests here:
https://github.com/apache/datafusion/blob/2a08013af3ccf703bee202c959b40bb0d35bdea1/datafusion/sqllogictest/test_files/aggregate.slt
implement var distinct (#19706)
implement var distinct (apache#19706)