WangGuangxin commented on issue #27558: [SPARK-30806][SQL]Evaluate once per 
group in UnboundedWindowFunctionFrame
URL: https://github.com/apache/spark/pull/27558#issuecomment-585618470
 
 
   > Could you show us a simple query for the performance pitfall?
   
   yes, this can be reproduced by
   
   ```
   spark.range(1000*1000).map(i => (i, "India")).toDF("uv", 
"country").createOrReplaceTempView("test")
   sql("select uv, country, percentile(uv, 0.95) over (partition by country) as 
ptc95 from test").collect.foreach(println)
   ```
   
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to