You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/02/08 14:39:48 UTC

[GitHub] [spark] cloud-fan commented on pull request #35248: [SPARK-37960][SQL] Support aggregate push down with `CASE ... WHEN ... ELSE ... END`

cloud-fan commented on pull request #35248:
URL: https://github.com/apache/spark/pull/35248#issuecomment-1032681495


   @beliefer Please enrich the PR description to explain the motivation of this approach. It's a new framework to represent catalyst expressions in DS v2 APIs, and CASE WHEN is just the first use case.
   
   To @HyukjinKwon , I proposed this idea because it's too much work to duplicate all the catalyst expressions in DS v2 with Java classes. In fact, the current basic DS v2 predicate/aggregate expressions should be sufficient for simple data sources that are file-based. It turns out that the sources which need advanced pushdown support are almost all SQL systems like Oracle, Clickhouse, etc., and it's actually better for them to get a SQL string directly, instead of building SQL string manually from DS v2 expressions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org