Apache DataFusion SQL Query Engine
Minor: Improve documentation for AggregateUDFImpl::state_fields (#11740)
张林伟0f554fa12490
diff --git a/datafusion/expr/src/udaf.rs b/datafusion/expr/src/udaf.rsindex af964b6154..f5eeef6b53 100644--- a/datafusion/expr/src/udaf.rs+++ b/datafusion/expr/src/udaf.rs@@ -351,12 +351,8 @@ pub trait AggregateUDFImpl: Debug + Send + Sync {/// Return the fields used to store the intermediate state of this accumulator.///- /// # Arguments:- /// 1. `name`: the name of the expression (e.g. AVG, SUM, etc)- /// 2. `value_type`: Aggregate function output returned by [`Self::return_type`] if defined, otherwise- /// it is equivalent to the data type of the first arguments- /// 3. `ordering_fields`: the fields used to order the input arguments, if any.- /// Empty if no ordering expression is provided.+ /// args: [`StateFieldsArgs`] contains arguments passed to the+ /// aggregate function's accumulator.////// # Notes:///