Skip to content

Commit 771834c

Browse files
committed
Adapt comment
1 parent 974a453 commit 771834c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datafusion/functions-aggregate/src/approx_percentile_cont.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ impl Accumulator for ApproxPercentileAccumulator {
394394
}
395395

396396
fn update_batch(&mut self, values: &[ArrayRef]) -> datafusion_common::Result<()> {
397-
// respect nulls by default
397+
// Remove any nulls before computing the percentile
398398
let mut values = Arc::clone(&values[0]);
399399
if values.nulls().is_some() {
400400
values = filter(&values, &is_not_null(&values)?)?;

0 commit comments

Comments
 (0)