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 9c12566 commit a42654c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion datafusion/expr/src/udaf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,11 @@ pub trait AggregateUDFImpl: Debug + Send + Sync {
/// the arguments
fn return_type(&self, arg_types: &[DataType]) -> Result<DataType>;

/// Whether the aggregate function is nullable
/// Whether the aggregate function is nullable.
///
/// Nullable means that that the function could return `null` for any inputs.
/// For example, aggregate functions like `COUNT` always return a non null value
/// but others like `MIN` will return `NULL` if there is no non null input.
fn is_nullable(&self) -> bool {
true
}
Expand Down

0 comments on commit a42654c

Please sign in to comment.