spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jackylk <...@git.apache.org>
Subject [GitHub] spark pull request: [SPARK-6007][SQL] Add numRows param in DataFra...
Date Thu, 26 Feb 2015 04:34:15 GMT
Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/spark/pull/4767#discussion_r25404282
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala ---
    @@ -293,9 +295,10 @@ class DataFrame protected[sql](
        *   1983  03    0.410516        0.442194
        *   1984  04    0.450090        0.483521
        * }}}
    +   * @param numRows Number of rows to show
        * @group basic
        */
    -  def show(): Unit = println(showString())
    +  def show(numRows: Int = 20): Unit = println(showString(numRows))
    --- End diff --
    
    I tried 
    ``` 
         DataFrame df = context.table("testData");
         df.show(10);
         df.show(1000);
         df.select("*").show(30);
    ```
    Is that what you mean?


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


Mime
View raw message