FailedChanges

Summary

  1. [SPARK-26861][SQL] deprecate typed sum/count/average (details)
Commit 8656af98c000877a815c38df8827af8e9981bcac by gatorsmile
[SPARK-26861][SQL] deprecate typed sum/count/average
## What changes were proposed in this pull request?
These builtin typed aggregate functions are not very useful: 1. users
can just call the untyped ones and turn the resulting dataframe to a
dataset. It has better performance. 2. the typed aggregate functions
have subtle different behaviors regarding empty input.
I think we should get rid of these builtin typed agg functions and
suggest users to use the untyped ones.
However, these functions are still useful as a demo of the `Aggregator`
API, so I copied them to the example module.
## How was this patch tested?
N/A
Closes #23763 from cloud-fan/example.
Authored-by: Wenchen Fan <wenchen@databricks.com> Signed-off-by:
gatorsmile <gatorsmile@gmail.com>
The file was modifiedsql/core/src/main/scala/org/apache/spark/sql/expressions/scalalang/typed.scala (diff)
The file was modifiedsql/core/src/main/java/org/apache/spark/sql/expressions/javalang/typed.java (diff)
The file was addedexamples/src/main/scala/org/apache/spark/examples/sql/SimpleTypedAggregator.scala