zhengruifeng commented on PR #40263:
URL: https://github.com/apache/spark/pull/40263#issuecomment-1477193966

   TL;DR  I want to apply scalar subquery to optimize 
`FPGrowthModel.transform`, there are two options:
   
   1, create temp views and use `spark.sql`, see 
https://github.com/apache/spark/commit/63595ba03d9f18fe0b43bfb09f974ea50cb2c651;
   
   2, add `private[spark] def withScalarSubquery(colName: String, subquery: 
Dataset[_]): DataFrame`, it seems much more convenient but not sure whether it 
is a proper way.
   
   cc @cloud-fan @HyukjinKwon 


-- 
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-unsubscr...@spark.apache.org

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


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

Reply via email to