Skip to content

Commit

Permalink
Use return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Dandandan committed Mar 12, 2024
1 parent 9c1559d commit 1067a28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ impl Accumulator for ApproxPercentileAccumulator {

fn evaluate(&mut self) -> Result<ScalarValue> {
if self.digest.count() == 0.0 {
return Ok(ScalarValue::Null);
return ScalarValue::try_from(self.return_type.clone());
}
let q = self.digest.estimate_quantile(self.percentile);

Expand Down

0 comments on commit 1067a28

Please sign in to comment.