Skip to content

Commit

Permalink
Update datafusion/expr/src/udaf.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Lamb <[email protected]>
  • Loading branch information
jayzhan211 and alamb authored Aug 20, 2024
1 parent a42654c commit e45d1bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datafusion/expr/src/udaf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,8 @@ pub trait AggregateUDFImpl: Debug + Send + Sync {
None
}

/// Returns default value of the function given the input is Null
/// Returns default value of the function given the input is all `null`.
///
/// Most of the aggregate function return Null if input is Null,
/// while `count` returns 0 if input is Null
fn default_value(&self, data_type: &DataType) -> Result<ScalarValue> {
Expand Down

0 comments on commit e45d1bb

Please sign in to comment.