package aggregate
Type Members
-    trait AggregateFunc extends Expression with SerializableBase class of the Aggregate Functions. Base class of the Aggregate Functions. - Annotations
- @Evolving()
- Since
- 3.2.0 
 
-   final  class Aggregation extends Record with SerializableAggregation in SQL statement. Aggregation in SQL statement. - Annotations
- @Evolving()
- Since
- 3.2.0 
 
-   final  class Avg extends ExpressionWithToString with AggregateFuncAn aggregate function that returns the mean of all the values in a group. An aggregate function that returns the mean of all the values in a group. - Annotations
- @Evolving()
- Since
- 3.3.0 
 
-   final  class Count extends ExpressionWithToString with AggregateFuncAn aggregate function that returns the number of the specific row in a group. An aggregate function that returns the number of the specific row in a group. - Annotations
- @Evolving()
- Since
- 3.2.0 
 
-   final  class CountStar extends ExpressionWithToString with AggregateFuncAn aggregate function that returns the number of rows in a group. An aggregate function that returns the number of rows in a group. - Annotations
- @Evolving()
- Since
- 3.2.0 
 
-   final  class GeneralAggregateFunc extends ExpressionWithToString with AggregateFuncThe general implementation of AggregateFunc, which contains the upper-cased function name, theisDistinctflag and all the inputs.The general implementation of AggregateFunc, which contains the upper-cased function name, theisDistinctflag and all the inputs. Note that Spark cannot push down partial aggregate with this function to the source, but can only push down the entire aggregate.The currently supported SQL aggregate functions: - 
VAR_POP(input1) Since 3.3.0
- 
VAR_SAMP(input1) Since 3.3.0
- 
STDDEV_POP(input1) Since 3.3.0
- 
STDDEV_SAMP(input1) Since 3.3.0
- 
COVAR_POP(input1, input2) Since 3.3.0
- 
COVAR_SAMP(input1, input2) Since 3.3.0
- 
CORR(input1, input2) Since 3.3.0
- 
REGR_INTERCEPT(input1, input2) Since 3.4.0
- 
REGR_R2(input1, input2) Since 3.4.0
- 
REGR_SLOPE(input1, input2) Since 3.4.0
- 
REGR_SXY(input1, input2) Since 3.4.0
- 
MODE() WITHIN (ORDER BY input1 [ASC|DESC]) Since 4.0.0
- 
PERCENTILE_CONT(input1) WITHIN (ORDER BY input2 [ASC|DESC]) Since 4.0.0
- 
PERCENTILE_DISC(input1) WITHIN (ORDER BY input2 [ASC|DESC]) Since 4.0.0
 - Annotations
- @Evolving()
- Since
- 3.3.0 
 
- 
-   final  class Max extends ExpressionWithToString with AggregateFuncAn aggregate function that returns the maximum value in a group. An aggregate function that returns the maximum value in a group. - Annotations
- @Evolving()
- Since
- 3.2.0 
 
-   final  class Min extends ExpressionWithToString with AggregateFuncAn aggregate function that returns the minimum value in a group. An aggregate function that returns the minimum value in a group. - Annotations
- @Evolving()
- Since
- 3.2.0 
 
-   final  class Sum extends ExpressionWithToString with AggregateFuncAn aggregate function that returns the summation of all the values in a group. An aggregate function that returns the summation of all the values in a group. - Annotations
- @Evolving()
- Since
- 3.2.0 
 
-    class UserDefinedAggregateFunc extends ExpressionWithToString with AggregateFuncThe general representation of user defined aggregate function, which implements AggregateFunc, contains the upper-cased function name, the canonical function name, theisDistinctflag and all the inputs.The general representation of user defined aggregate function, which implements AggregateFunc, contains the upper-cased function name, the canonical function name, theisDistinctflag and all the inputs. Note that Spark cannot push down aggregate with this function partially to the source, but can only push down the entire aggregate.- Annotations
- @Evolving()
- Since
- 3.4.0