@Evolving public final class GeneralAggregateFunc extends org.apache.spark.sql.internal.connector.ExpressionWithToString implements AggregateFunc
AggregateFunc
, which contains the upper-cased function
name, the `isDistinct` flag 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
EMPTY_EXPRESSION, EMPTY_NAMED_REFERENCE
Constructor and Description |
---|
GeneralAggregateFunc(String name,
boolean isDistinct,
Expression[] children) |
Modifier and Type | Method and Description |
---|---|
Expression[] |
children()
Returns an array of the children of this node.
|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isDistinct() |
String |
name() |
describe, references, toString
describe, references
public GeneralAggregateFunc(String name, boolean isDistinct, Expression[] children)
public String name()
public boolean isDistinct()
public Expression[] children()
Expression
children
in interface Expression
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object