Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12836#discussion_r61709084
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala ---
    @@ -1999,6 +1999,34 @@ class Dataset[T] private[sql](
       }
     
       /**
    +   * Returns a new [[DataFrame]] which contains the aggregated result of 
applying
    +   * [[func]] R function to each group
    +   *
    +   * @group func
    +   * @since 2.0.0
    +   */
    +  def mapGroupPartitionsInR[K: Encoder](
    +    gfunc: T => K,
    +    func: Array[Byte],
    +    packageNames: Array[Byte],
    +    broadcastVars: Array[Object],
    +    outputSchema: StructType): DataFrame = {
    +
    +    val inputPlan = logicalPlan
    +    val withGroupingKey = AppendColumns(gfunc, inputPlan)
    +    val executed = sqlContext.executePlan(withGroupingKey)
    +
    +    val kvdg = new KeyValueGroupedDataset(
    --- End diff --
    
    What is `kvdg`? 


---
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