We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 974a453 commit 771834cCopy full SHA for 771834c
datafusion/functions-aggregate/src/approx_percentile_cont.rs
@@ -394,7 +394,7 @@ impl Accumulator for ApproxPercentileAccumulator {
394
}
395
396
fn update_batch(&mut self, values: &[ArrayRef]) -> datafusion_common::Result<()> {
397
- // respect nulls by default
+ // Remove any nulls before computing the percentile
398
let mut values = Arc::clone(&values[0]);
399
if values.nulls().is_some() {
400
values = filter(&values, &is_not_null(&values)?)?;
0 commit comments