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

[GitHub] spark pull request: SPARK-12105 - SPARK-SQL add convenient show fu...

GitHub user jbonofre opened a pull request:

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

    SPARK-12105 - SPARK-SQL add convenient show functions

    

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

    $ git pull https://github.com/jbonofre/spark SPARK-12105

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

    https://github.com/apache/spark/pull/10130.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 #10130
    
----
commit 1d583323a2d7ae01962bf707262ae6e66cdb5bd6
Author: Jean-Baptiste Onofré <jb...@apache.org>
Date:   2015-12-03T13:50:59Z

    SPARK-12105 - SPARK-SQL add convenient show functions

----


---
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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#discussion_r47567898
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala ---
    @@ -17,7 +17,7 @@
     
     package org.apache.spark.sql
     
    -import java.io.CharArrayWriter
    +import java.io.{OutputStreamWriter, Writer, OutputStream, CharArrayWriter}
    --- End diff --
    
    no longer used


---
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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#discussion_r47568050
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala ---
    @@ -161,11 +161,18 @@ class DataFrame private[sql](
       }
     
       /**
    +    * Alias on showString for user convenience
    --- End diff --
    
    I would just copy the docs for `showString` here.


---
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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#discussion_r47699946
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala ---
    @@ -161,11 +161,18 @@ class DataFrame private[sql](
       }
     
       /**
    +    * Compose the string representing rows for output
    +    */
    +  def showString(): String = {
    +    showString(20);
    +  }
    +
    +  /**
        * 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 = {
    +  def showString(_numRows: Int, truncate: Boolean = true): String = {
         val numRows = _numRows.max(0)
    --- End diff --
    
    let's do that separately


---
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-12105 - SPARK-SQL add convenient show fu...

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

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


---
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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#discussion_r47697679
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala ---
    @@ -161,11 +161,18 @@ class DataFrame private[sql](
       }
     
       /**
    +    * Compose the string representing rows for output
    +    */
    +  def showString(): String = {
    +    showString(20);
    --- End diff --
    
    remove `;`, this is scala. I'll fix this on merge


---
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-12105 - SPARK-SQL add convenient show fu...

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

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


---
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 issue #10130: SPARK-12105 - SPARK-SQL add convenient show functions

Posted by dmateusp <gi...@git.apache.org>.
Github user dmateusp commented on the issue:

    https://github.com/apache/spark/pull/10130
  
    +1 any chance we can revive this PR ?


---

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


[GitHub] spark issue #10130: SPARK-12105 - SPARK-SQL add convenient show functions

Posted by jjzazuet <gi...@git.apache.org>.
Github user jjzazuet commented on the issue:

    https://github.com/apache/spark/pull/10130
  
    Hi. So it's 2018 and `Dataset.scala` still has
    
        private[sql] def showString(_numRows: Int, truncate: Int = 20): String
    
    I also vouch for having this method exposed as public to capture into logs in the driver program.
    
    Thanks!


---

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


[GitHub] spark pull request: SPARK-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#discussion_r47567953
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala ---
    @@ -161,11 +161,18 @@ class DataFrame private[sql](
       }
     
       /**
    +    * Alias on showString for user convenience
    +    */
    +  def showString(): String = {
    +    showString(20, true);
    --- End diff --
    
    can you name the parameter? `truncate = true`


---
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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#issuecomment-165043401
  
    By the way, let me know if you want the change, I can extend to Python API as well. And what do you mean by default values about Java compatibility ?


---
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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#issuecomment-164061900
  
    **[Test build #47594 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/47594/consoleFull)** for PR 10130 at commit [`219d75c`](https://github.com/apache/spark/commit/219d75c16092ddc32705bca16342fb26ec4f4ba3).


---
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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#issuecomment-164084957
  
    **[Test build #47594 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/47594/consoleFull)** for PR 10130 at commit [`219d75c`](https://github.com/apache/spark/commit/219d75c16092ddc32705bca16342fb26ec4f4ba3).
     * 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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#discussion_r47698977
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala ---
    @@ -161,11 +161,18 @@ class DataFrame private[sql](
       }
     
       /**
    +    * Compose the string representing rows for output
    +    */
    +  def showString(): String = {
    +    showString(20);
    +  }
    +
    +  /**
        * 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 = {
    +  def showString(_numRows: Int, truncate: Boolean = true): String = {
         val numRows = _numRows.max(0)
    --- End diff --
    
    @andrewor14 Do we need similar change for dataset api ?


---
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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#issuecomment-164033243
  
    @jbonofre I think it might be sufficient to just expose `showString`. It might be good to also have an alias so the user can just call `val x = df.showString()`.


---
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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#issuecomment-164692289
  
    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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#issuecomment-164963842
  
    Merged into 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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#issuecomment-164047523
  
    Merged build finished. Test FAILed.


---
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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#issuecomment-164053126
  
    Thanks for the update @andrewor14. It makes sense for the new functions(). Exposing the showString() is enough for most of the cases. Let me update the PR.


---
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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#issuecomment-164085087
  
    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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#issuecomment-164692124
  
    **[Test build #47720 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/47720/consoleFull)** for PR 10130 at commit [`694e94f`](https://github.com/apache/spark/commit/694e94fc322b9ca7830a957f111b38700fae998f).
     * 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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#issuecomment-164672125
  
    **[Test build #47720 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/47720/consoleFull)** for PR 10130 at commit [`694e94f`](https://github.com/apache/spark/commit/694e94fc322b9ca7830a957f111b38700fae998f).


---
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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#issuecomment-164033343
  
    add to whitelist


---
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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#issuecomment-161880814
  
    Rebase


---
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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#issuecomment-164047468
  
    **[Test build #47589 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/47589/consoleFull)** for PR 10130 at commit [`edbb87c`](https://github.com/apache/spark/commit/edbb87c707579c6e8ca4b759a9c70ca259d1671b).
     * This patch **fails Spark unit tests**.
     * This patch merges cleanly.
     * This patch adds the following public classes _(experimental)_:\n  * `class ExecutorClassLoader(`\n


---
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 issue #10130: SPARK-12105 - SPARK-SQL add convenient show functions

Posted by tmccartan <gi...@git.apache.org>.
Github user tmccartan commented on the issue:

    https://github.com/apache/spark/pull/10130
  
    +1


---

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


[GitHub] spark pull request: SPARK-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#discussion_r47397253
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala ---
    @@ -394,6 +394,15 @@ class DataFrame private[sql](
       def show(numRows: Int, truncate: Boolean): Unit = println(showString(numRows, truncate))
       // scalastyle:on println
     
    +  def show(numRows: Int, truncate: Boolean, outputStream: OutputStream): Unit = {
    +    val writer = new OutputStreamWriter(outputStream, "UTF-8")
    +    writer.write(showString(numRows, truncate))
    +  }
    +
    +  def show(numRows: Int, truncate: Boolean, writer: Writer): Unit = {
    --- End diff --
    
    these signatures are really clunky and I don't think we want it. Also the string is already composed so it's not like we're streaming things to the writer anyway.


---
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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#discussion_r47697821
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala ---
    @@ -161,11 +161,18 @@ class DataFrame private[sql](
       }
     
       /**
    +    * Compose the string representing rows for output
    +    */
    +  def showString(): String = {
    +    showString(20);
    +  }
    +
    +  /**
        * 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 = {
    +  def showString(_numRows: Int, truncate: Boolean = true): String = {
         val numRows = _numRows.max(0)
    --- End diff --
    
    another minor thing: now that this is a public API we should expose a better parameter name
    ```
    def showString(numRows: Int, ...): String = {
      val _numRows = numRows.max(0)
    }
    ```


---
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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#discussion_r47596340
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala ---
    @@ -161,11 +161,18 @@ class DataFrame private[sql](
       }
     
       /**
    +    * Alias on showString for user convenience
    +    */
    +  def showString(): String = {
    +    showString(20, true);
    --- End diff --
    
    Let me clean it up and update the doc. 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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#issuecomment-164692290
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/47720/
    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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#issuecomment-164035029
  
    **[Test build #47589 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/47589/consoleFull)** for PR 10130 at commit [`edbb87c`](https://github.com/apache/spark/commit/edbb87c707579c6e8ca4b759a9c70ca259d1671b).


---
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 issue #10130: SPARK-12105 - SPARK-SQL add convenient show functions

Posted by davis-x <gi...@git.apache.org>.
Github user davis-x commented on the issue:

    https://github.com/apache/spark/pull/10130
  
    +1


---

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


[GitHub] spark pull request: SPARK-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#issuecomment-165043231
  
    Hi Reynold. No problem, I just proposed the PR as least to discuss, and I think it's convenient for users. 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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#issuecomment-165298591
  
    Default parameter values only work in Scala, not Java.



---
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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#issuecomment-165037641
  
    Sorry I reverted the patch. Please check with me on the API change in the future.
    
    First I'm not 100% sure whether we want this (we might, just not sure yet), and then there are problems with the API (e.g. we should not use any default values for Java compatibility).


---
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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#issuecomment-164672635
  
    
    NAVER - http://www.naver.com/
    --------------------------------------------
    
    3ourroom@naver.com 님께 보내신 메일 <Re: [spark] SPARK-12105 - SPARK-SQL add convenient show functions (#10130)> 이 다음과 같은 이유로 전송 실패했습니다.
    
    --------------------------------------------
    
    받는 사람이 회원님의 메일을 수신차단 하였습니다. 
    
    
    --------------------------------------------



---
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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#discussion_r47700926
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala ---
    @@ -161,11 +161,18 @@ class DataFrame private[sql](
       }
     
       /**
    +    * Compose the string representing rows for output
    +    */
    +  def showString(): String = {
    +    showString(20);
    +  }
    +
    +  /**
        * 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 = {
    +  def showString(_numRows: Int, truncate: Boolean = true): String = {
         val numRows = _numRows.max(0)
    --- End diff --
    
    @andrewor14  Thanks Andrew.


---
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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#issuecomment-161645600
  
    Can one of the admins verify this patch?


---
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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#issuecomment-164085089
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/47594/
    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-12105 - SPARK-SQL add convenient show fu...

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

    https://github.com/apache/spark/pull/10130#discussion_r47568001
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala ---
    @@ -161,11 +161,18 @@ class DataFrame private[sql](
       }
     
       /**
    +    * Alias on showString for user convenience
    +    */
    +  def showString(): String = {
    +    showString(20, true);
    --- End diff --
    
    actually, since it default to true you can just not provide it, i.e. `showString(20)`


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