-
- Downloads
[SPARK-11578][SQL][FOLLOW-UP] complete the user facing api for typed aggregation
Currently the user facing api for typed aggregation has some limitations: * the customized typed aggregation must be the first of aggregation list * the customized typed aggregation can only use long as buffer type * the customized typed aggregation can only use flat type as result type This PR tries to remove these limitations. Author: Wenchen Fan <wenchen@databricks.com> Closes #9599 from cloud-fan/agg.
Showing
- sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/encoders/ExpressionEncoder.scala 6 additions, 0 deletions...pache/spark/sql/catalyst/encoders/ExpressionEncoder.scala
- sql/core/src/main/scala/org/apache/spark/sql/execution/aggregate/TypedAggregateExpression.scala 36 additions, 14 deletions...rk/sql/execution/aggregate/TypedAggregateExpression.scala
- sql/core/src/main/scala/org/apache/spark/sql/expressions/Aggregator.scala 5 additions, 0 deletions...n/scala/org/apache/spark/sql/expressions/Aggregator.scala
- sql/core/src/test/scala/org/apache/spark/sql/DatasetAggregatorSuite.scala 52 additions, 0 deletions...t/scala/org/apache/spark/sql/DatasetAggregatorSuite.scala
Please register or sign in to comment