GitHub user yaooqinn opened a pull request:

    https://github.com/apache/spark/pull/19363

    [Minor]Override toString of KeyValueGroupedDataset

    ## What changes were proposed in this pull request?
    #### before
    
    ```scala
    scala> val words = spark.read.textFile("fREADME.md").flatMap(_.split(" "))
    words: org.apache.spark.sql.Dataset[String] = [value: string]
    
    scala> val grouped = words.groupByKey(identity)
    grouped: org.apache.spark.sql.KeyValueGroupedDataset[String,String] = 
org.apache.spark.sql.KeyValueGroupedDataset@65214862
    ```
    #### after
    ```scala
    scala> val words = spark.read.textFile("README.md").flatMap(_.split(" "))
    words: org.apache.spark.sql.Dataset[String] = [value: string]
    
    scala> val grouped = words.groupByKey(identity)
    grouped: org.apache.spark.sql.KeyValueGroupedDataset[String,String] = [key: 
[value: string], value: [value: string]]
    ```
    
    ## How was this patch tested?
    existing ut
    
    cc @gatorsmile @cloud-fan 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/yaooqinn/spark minor-dataset-tostring

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/19363.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #19363
    
----
commit a9b30bd6508421de192d0d44b6bc03afd3e0a792
Author: Kent Yao <yaooq...@hotmail.com>
Date:   2017-09-27T07:54:41Z

    override toString of KeyValueGroupedDataset

----


---

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

Reply via email to