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 [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to