Github user koertkuipers commented on the issue: https://github.com/apache/spark/pull/13526 the tricky part with that is that (ds: Dataset[(K, V)]).groupBy(_._1).mapValues(_._2) should return a KeyValueGroupedDataset[K, V] On Tue, Jun 7, 2016 at 8:22 PM, Wenchen Fan <notificati...@github.com> wrote: > A possible approach maybe just keep the function given by mapValues, and > apply it before calling the function given by mapGroups. By doing this, > we at least won't make the performance worse, as the underlying plan > doesn't change. > > â > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/apache/spark/pull/13526#issuecomment-224453064>, or mute > the thread > <https://github.com/notifications/unsubscribe/AAyIJCOywIHS-XfwsPytJXcYZf7AHkqFks5qJgtWgaJpZM4IvEGP> > . >
--- 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