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-37960][SQL] A new framework to represent catalyst expressions in DS v2 APIs
### What changes were proposed in this pull request?
This PR provides a new framework to represent catalyst expressions in DS v2 APIs.
`GeneralSQLExpression` is a general SQL expression to represent catalyst expression in DS v2 API.
`ExpressionSQLBuilder` is a builder to generate `GeneralSQLExpression` from catalyst expressions.
`CASE ... WHEN ... ELSE ... END` is just the first use case.
This PR also supports aggregate push down with `CASE ... WHEN ... ELSE ... END`.
### Why are the changes needed?
Support aggregate push down with `CASE ... WHEN ... ELSE ... END`.
### Does this PR introduce _any_ user-facing change?
Yes. Users could use `CASE ... WHEN ... ELSE ... END` with aggregate push down.
### How was this patch tested?
New tests.
Closesapache#35248 from beliefer/SPARK-37960.
Authored-by: Jiaan Geng <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
0 commit comments