Github user mengxr commented on the pull request:

    https://github.com/apache/spark/pull/5842#issuecomment-98499596
  
    @brkyvz I had an offline discussion with Reynold. For the first version, 
let's implement the local version in a single pass, which should cover most of 
the use cases. The steps would be
    
    1. `val counts = df.groupBy(col1, col1).agg(col1, col2, 
count("*")).collect()`.
    2. Find distinct col1/col2 values on the driver from `counts`.
    3. Pivot and create the table DF on the driver.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to