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 2019/07/12 16:20:50 UTC

[GitHub] [spark] AngersZhuuuu opened a new pull request #25028: [SPARK-28227][SQL] Support TRANSFORM with aggregation.

AngersZhuuuu opened a new pull request #25028: [SPARK-28227][SQL] Support TRANSFORM with aggregation.
URL: https://github.com/apache/spark/pull/25028
 
 
   ## What changes were proposed in this pull request?
   For Spark SQL, it can't support sql like :
   `SELECT TRANSFORM ( d2, max(d1) as maxd1, cast(sum(d3) as string))`
   `USING 'cat' AS (a,b,c)`
   `FROM script_trans`
   `WHERE d1 <= 100`
   `GROUP BY d2`
   `HAVING maxd1 > 0`
   
   But in hive, it can support this kind SQL.
   This makes our SQL migration difficult and complex。
   This PR is to support use Aggregation with TRANSFORM and make SQL migration from Hive to Sparkeasier.
   
   
   ## How was this patch tested?
   
   Added unit test.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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