You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by gatorsmile <gi...@git.apache.org> on 2015/12/09 05:14:04 UTC

[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

GitHub user gatorsmile opened a pull request:

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

    [SPARK-12164] [SQL] Decode the encoded values and then display

    Based on the suggestions from @marmbrus @cloud-fan in https://github.com/apache/spark/pull/10165 , this PR is to print the decoded values(user objects) in `Dataset.show`
    ```
        implicit val kryoEncoder = Encoders.kryo[KryoClassData]
        val ds = Seq(KryoClassData("a", 1), KryoClassData("b", 2), KryoClassData("c", 3)).toDS()
        ds.show(20, false);
    ```
    The current output is like 
    ```
    +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    |value                                                                                                                                                                                 |
    +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    |[1, 0, 111, 114, 103, 46, 97, 112, 97, 99, 104, 101, 46, 115, 112, 97, 114, 107, 46, 115, 113, 108, 46, 75, 114, 121, 111, 67, 108, 97, 115, 115, 68, 97, 116, -31, 1, 1, -126, 97, 2]|
    |[1, 0, 111, 114, 103, 46, 97, 112, 97, 99, 104, 101, 46, 115, 112, 97, 114, 107, 46, 115, 113, 108, 46, 75, 114, 121, 111, 67, 108, 97, 115, 115, 68, 97, 116, -31, 1, 1, -126, 98, 4]|
    |[1, 0, 111, 114, 103, 46, 97, 112, 97, 99, 104, 101, 46, 115, 112, 97, 114, 107, 46, 115, 113, 108, 46, 75, 114, 121, 111, 67, 108, 97, 115, 115, 68, 97, 116, -31, 1, 1, -126, 99, 6]|
    +--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    ```
    After the fix, it will be like the below
    ```
    +-------------------+
    |value              |
    +-------------------+
    |KryoClassData(a, 1)|
    |KryoClassData(b, 2)|
    |KryoClassData(c, 3)|
    +-------------------+
    ```

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

    $ git pull https://github.com/gatorsmile/spark showDecodedValue

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

    https://github.com/apache/spark/pull/10215.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 #10215
    
----
commit 1e1ad1970a8bf3d9076165074f18ee7f28ab4acd
Author: gatorsmile <ga...@gmail.com>
Date:   2015-12-09T04:08:17Z

    show decoded values.

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by marmbrus <gi...@git.apache.org>.
Github user marmbrus commented on a diff in the pull request:

    https://github.com/apache/spark/pull/10215#discussion_r47582589
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/Queryable.scala ---
    @@ -42,4 +43,67 @@ private[sql] trait Queryable {
       def explain(extended: Boolean): Unit
     
       def explain(): Unit
    +
    +  private[sql] def showString(_numRows: Int, truncate: Boolean = true): String
    +
    +  /**
    +    * Format the string representing rows for output
    +    * @param rows The rows to show
    +    * @param numRows Number of rows to show
    +    * @param hasMoreData Whether some rows are not shown due to the limit
    +    * @param truncate Whether truncate long strings and align cells right
    +    *
    +    */
    +  private[sql] def formatString (rows: Seq[Seq[String]],
    --- End diff --
    
    This indenting is wrong. https://cwiki.apache.org/confluence/display/SPARK/Spark+Code+Style+Guide#SparkCodeStyleGuide-Indentation
    
    4 space for function args that wrap.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/10215#issuecomment-164081631
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/47597/
    Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by liancheng <gi...@git.apache.org>.
Github user liancheng commented on a diff in the pull request:

    https://github.com/apache/spark/pull/10215#discussion_r47350129
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala ---
    @@ -161,17 +161,15 @@ class DataFrame private[sql](
       }
     
       /**
    -   * Compose the string representing rows for output
    -   * @param _numRows Number of rows to show
    -   * @param truncate Whether truncate long strings and align cells right
    -   */
    -  private[sql] def showString(_numRows: Int, truncate: Boolean = true): String = {
    +    * Compose the string representing rows for output
    +    * @param _numRows Number of rows to show
    +    * @param truncate Whether truncate long strings and align cells right
    +    */
    --- End diff --
    
    Please revert these white space changes (I hate IDEA 15 too...)


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/10215#issuecomment-164683314
  
    **[Test build #47717 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/47717/consoleFull)** for PR 10215 at commit [`1c33441`](https://github.com/apache/spark/commit/1c3344169d9c17239a807ccfb550239823322612).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/10215#issuecomment-164683537
  
    Merged build finished. Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/10215#issuecomment-164081248
  
    **[Test build #47597 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/47597/consoleFull)** for PR 10215 at commit [`48e049b`](https://github.com/apache/spark/commit/48e049b843582641103ad5befc2f6d3355d3bab8).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by marmbrus <gi...@git.apache.org>.
Github user marmbrus commented on a diff in the pull request:

    https://github.com/apache/spark/pull/10215#discussion_r47678074
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala ---
    @@ -698,47 +733,47 @@ class Dataset[T] private[sql](
       def takeAsList(num: Int): java.util.List[T] = java.util.Arrays.asList(take(num) : _*)
     
       /**
    -    * Persist this [[Dataset]] with the default storage level (`MEMORY_AND_DISK`).
    -    * @since 1.6.0
    -    */
    +   * Persist this [[Dataset]] with the default storage level (`MEMORY_AND_DISK`).
    +   * @since 1.6.0
    +   */
       def persist(): this.type = {
         sqlContext.cacheManager.cacheQuery(this)
         this
       }
     
       /**
    -    * Persist this [[Dataset]] with the default storage level (`MEMORY_AND_DISK`).
    -    * @since 1.6.0
    -    */
    +   * Persist this [[Dataset]] with the default storage level (`MEMORY_AND_DISK`).
    +   * @since 1.6.0
    +   */
       def cache(): this.type = persist()
     
       /**
    -    * Persist this [[Dataset]] with the given storage level.
    -    * @param newLevel One of: `MEMORY_ONLY`, `MEMORY_AND_DISK`, `MEMORY_ONLY_SER`,
    -    *                 `MEMORY_AND_DISK_SER`, `DISK_ONLY`, `MEMORY_ONLY_2`,
    -    *                 `MEMORY_AND_DISK_2`, etc.
    -    * @group basic
    -    * @since 1.6.0
    -    */
    +   * Persist this [[Dataset]] with the given storage level.
    +   * @param newLevel One of: `MEMORY_ONLY`, `MEMORY_AND_DISK`, `MEMORY_ONLY_SER`,
    +   *                 `MEMORY_AND_DISK_SER`, `DISK_ONLY`, `MEMORY_ONLY_2`,
    +   *                 `MEMORY_AND_DISK_2`, etc.
    +   * @group basic
    +   * @since 1.6.0
    +   */
       def persist(newLevel: StorageLevel): this.type = {
         sqlContext.cacheManager.cacheQuery(this, None, newLevel)
         this
       }
     
       /**
    -    * Mark the [[Dataset]] as non-persistent, and remove all blocks for it from memory and disk.
    -    * @param blocking Whether to block until all blocks are deleted.
    -    * @since 1.6.0
    -    */
    +   * Mark the [[Dataset]] as non-persistent, and remove all blocks for it from memory and disk.
    +   * @param blocking Whether to block until all blocks are deleted.
    +   * @since 1.6.0
    +   */
       def unpersist(blocking: Boolean): this.type = {
         sqlContext.cacheManager.tryUncacheQuery(this, blocking)
         this
       }
     
       /**
    -    * Mark the [[Dataset]] as non-persistent, and remove all blocks for it from memory and disk.
    -    * @since 1.6.0
    -    */
    --- End diff --
    
    Please undo these changes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

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


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by 3ourroom <gi...@git.apache.org>.
Github user 3ourroom commented on the pull request:

    https://github.com/apache/spark/pull/10215#issuecomment-164683532
  
    
    NAVER - http://www.naver.com/
    --------------------------------------------
    
    3ourroom@naver.com 님께 보내신 메일 <Re: [spark] [SPARK-12164] [SQL] Decode the encoded values and then display (#10215)> 이 다음과 같은 이유로 전송 실패했습니다.
    
    --------------------------------------------
    
    받는 사람이 회원님의 메일을 수신차단 하였습니다. 
    
    
    --------------------------------------------



---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by marmbrus <gi...@git.apache.org>.
Github user marmbrus commented on the pull request:

    https://github.com/apache/spark/pull/10215#issuecomment-165252152
  
    Thanks, merging to master.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/10215#issuecomment-164893392
  
    **[Test build #47745 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/47745/consoleFull)** for PR 10215 at commit [`5553b0b`](https://github.com/apache/spark/commit/5553b0b8f5f064cdd5676fcf14008fd5036f6d4e).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by marmbrus <gi...@git.apache.org>.
Github user marmbrus commented on the pull request:

    https://github.com/apache/spark/pull/10215#issuecomment-164605837
  
    Can you add tests too?  Probably in `DataFrameSuite`.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/10215#issuecomment-164062523
  
    **[Test build #47597 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/47597/consoleFull)** for PR 10215 at commit [`48e049b`](https://github.com/apache/spark/commit/48e049b843582641103ad5befc2f6d3355d3bab8).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/10215#issuecomment-164683541
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/47717/
    Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/10215#issuecomment-164081626
  
    Merged build finished. Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/10215#issuecomment-164662894
  
    **[Test build #47717 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/47717/consoleFull)** for PR 10215 at commit [`1c33441`](https://github.com/apache/spark/commit/1c3344169d9c17239a807ccfb550239823322612).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/10215#discussion_r47681732
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala ---
    @@ -698,47 +733,47 @@ class Dataset[T] private[sql](
       def takeAsList(num: Int): java.util.List[T] = java.util.Arrays.asList(take(num) : _*)
     
       /**
    -    * Persist this [[Dataset]] with the default storage level (`MEMORY_AND_DISK`).
    -    * @since 1.6.0
    -    */
    +   * Persist this [[Dataset]] with the default storage level (`MEMORY_AND_DISK`).
    +   * @since 1.6.0
    +   */
       def persist(): this.type = {
         sqlContext.cacheManager.cacheQuery(this)
         this
       }
     
       /**
    -    * Persist this [[Dataset]] with the default storage level (`MEMORY_AND_DISK`).
    -    * @since 1.6.0
    -    */
    +   * Persist this [[Dataset]] with the default storage level (`MEMORY_AND_DISK`).
    +   * @since 1.6.0
    +   */
       def cache(): this.type = persist()
     
       /**
    -    * Persist this [[Dataset]] with the given storage level.
    -    * @param newLevel One of: `MEMORY_ONLY`, `MEMORY_AND_DISK`, `MEMORY_ONLY_SER`,
    -    *                 `MEMORY_AND_DISK_SER`, `DISK_ONLY`, `MEMORY_ONLY_2`,
    -    *                 `MEMORY_AND_DISK_2`, etc.
    -    * @group basic
    -    * @since 1.6.0
    -    */
    +   * Persist this [[Dataset]] with the given storage level.
    +   * @param newLevel One of: `MEMORY_ONLY`, `MEMORY_AND_DISK`, `MEMORY_ONLY_SER`,
    +   *                 `MEMORY_AND_DISK_SER`, `DISK_ONLY`, `MEMORY_ONLY_2`,
    +   *                 `MEMORY_AND_DISK_2`, etc.
    +   * @group basic
    +   * @since 1.6.0
    +   */
       def persist(newLevel: StorageLevel): this.type = {
         sqlContext.cacheManager.cacheQuery(this, None, newLevel)
         this
       }
     
       /**
    -    * Mark the [[Dataset]] as non-persistent, and remove all blocks for it from memory and disk.
    -    * @param blocking Whether to block until all blocks are deleted.
    -    * @since 1.6.0
    -    */
    +   * Mark the [[Dataset]] as non-persistent, and remove all blocks for it from memory and disk.
    +   * @param blocking Whether to block until all blocks are deleted.
    +   * @since 1.6.0
    +   */
       def unpersist(blocking: Boolean): this.type = {
         sqlContext.cacheManager.tryUncacheQuery(this, blocking)
         this
       }
     
       /**
    -    * Mark the [[Dataset]] as non-persistent, and remove all blocks for it from memory and disk.
    -    * @since 1.6.0
    -    */
    --- End diff --
    
    So sorry for introducing these inconsistency. Undo the changes. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/10215#issuecomment-164893550
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/47745/
    Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/10215#issuecomment-164860412
  
    **[Test build #47745 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/47745/consoleFull)** for PR 10215 at commit [`5553b0b`](https://github.com/apache/spark/commit/5553b0b8f5f064cdd5676fcf14008fd5036f6d4e).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/10215#discussion_r47409690
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala ---
    @@ -161,17 +161,15 @@ class DataFrame private[sql](
       }
     
       /**
    -   * Compose the string representing rows for output
    -   * @param _numRows Number of rows to show
    -   * @param truncate Whether truncate long strings and align cells right
    -   */
    -  private[sql] def showString(_numRows: Int, truncate: Boolean = true): String = {
    +    * Compose the string representing rows for output
    +    * @param _numRows Number of rows to show
    +    * @param truncate Whether truncate long strings and align cells right
    +    */
    --- End diff --
    
    Yeah. Just upgraded to 15.0.2 The problem still exists... 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by cloud-fan <gi...@git.apache.org>.
Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/10215#discussion_r47586646
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala ---
    @@ -225,7 +225,41 @@ class Dataset[T] private[sql](
        *
        * @since 1.6.0
        */
    -  def show(numRows: Int, truncate: Boolean): Unit = toDF().show(numRows, truncate)
    +  // scalastyle:off println
    +  def show(numRows: Int, truncate: Boolean): Unit = println(showString(numRows, truncate))
    +  // scalastyle:on println
    +
    +  /**
    +    * Compose the string representing rows for output
    +    * @param _numRows Number of rows to show
    +    * @param truncate Whether truncate long strings and align cells right
    +    */
    --- End diff --
    
    we should use javadoc style instead of scaladoc.  i.e.
    ```
    /**
     *
     *
     */
    ```


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/10215#issuecomment-163106002
  
    **[Test build #47405 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/47405/consoleFull)** for PR 10215 at commit [`1e1ad19`](https://github.com/apache/spark/commit/1e1ad1970a8bf3d9076165074f18ee7f28ab4acd).


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/10215#issuecomment-164893541
  
    Merged build finished. Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/10215#issuecomment-163120394
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/47405/
    Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on the pull request:

    https://github.com/apache/spark/pull/10215#issuecomment-164661444
  
    To simplify the possible code merge, I combined the code changes in another related PR: https://github.com/apache/spark/pull/10165. Thank you! 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/10215#discussion_r47585295
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/Queryable.scala ---
    @@ -42,4 +43,67 @@ private[sql] trait Queryable {
       def explain(extended: Boolean): Unit
     
       def explain(): Unit
    +
    +  private[sql] def showString(_numRows: Int, truncate: Boolean = true): String
    +
    +  /**
    +    * Format the string representing rows for output
    +    * @param rows The rows to show
    +    * @param numRows Number of rows to show
    +    * @param hasMoreData Whether some rows are not shown due to the limit
    +    * @param truncate Whether truncate long strings and align cells right
    +    *
    +    */
    +  private[sql] def formatString (rows: Seq[Seq[String]],
    --- End diff --
    
    Sorry, this is caused by IntelliJ IDEA 15. It automatically changes indenting if I copied and pasted. :( Will correct it. 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/10215#issuecomment-163120392
  
    Merged build finished. Test PASSed.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on the pull request:

    https://github.com/apache/spark/pull/10215#issuecomment-164610895
  
    Sure, will do. Thanks! 


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/10215#issuecomment-163120309
  
    **[Test build #47405 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/47405/consoleFull)** for PR 10215 at commit [`1e1ad19`](https://github.com/apache/spark/commit/1e1ad1970a8bf3d9076165074f18ee7f28ab4acd).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-12164] [SQL] Decode the encoded values ...

Posted by gatorsmile <gi...@git.apache.org>.
Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/10215#discussion_r47587249
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala ---
    @@ -225,7 +225,41 @@ class Dataset[T] private[sql](
        *
        * @since 1.6.0
        */
    -  def show(numRows: Int, truncate: Boolean): Unit = toDF().show(numRows, truncate)
    +  // scalastyle:off println
    +  def show(numRows: Int, truncate: Boolean): Unit = println(showString(numRows, truncate))
    +  // scalastyle:on println
    +
    +  /**
    +    * Compose the string representing rows for output
    +    * @param _numRows Number of rows to show
    +    * @param truncate Whether truncate long strings and align cells right
    +    */
    --- End diff --
    
    Yeah. Will correct all these. Thanks!


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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