You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SPARK-37789][SQL] Add a class to represent general aggregate functions in DS V2
### What changes were proposed in this pull request?
There are a lot of aggregate functions in SQL and it's a lot of work to add them one by one in the DS v2 API. This PR proposes to add a new `GeneralAggregateFunc` class to represent all the general SQL aggregate functions. Since it's general, Spark doesn't know its aggregation buffer and can only push down the aggregation to the source completely.
As an example, this PR also translates `AVG` to `GeneralAggregateFunc` and pushes it to JDBC V2.
### Why are the changes needed?
To add aggregate functions in DS v2 easier.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
JDBC v2 test
Closesapache#35070 from cloud-fan/agg.
Lead-authored-by: Wenchen Fan <[email protected]>
Co-authored-by: Wenchen Fan <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
0 commit comments