-
- Downloads
[SPARK-8434][SQL]Add a "pretty" parameter to the "show" method to display long strings
Sometimes the user may want to show the complete content of cells. Now `sql("set -v").show()` displays:  The user needs to use something like `sql("set -v").collect().foreach(r => r.toSeq.mkString("\t"))` to show the complete content. This PR adds a `pretty` parameter to show. If `pretty` is false, `show` won't truncate strings or align cells right.  Author: zsxwing <zsxwing@gmail.com> Closes #6877 from zsxwing/show and squashes the following commits: 22e28e9 [zsxwing] pretty -> truncate e582628 [zsxwing] Add pretty parameter to the show method in R a3cd55b [zsxwing] Fix calling showString in R 923cee4 [zsxwing] Add a "pretty" parameter to show to display long strings
Showing
- R/pkg/R/DataFrame.R 2 additions, 2 deletionsR/pkg/R/DataFrame.R
- python/pyspark/sql/dataframe.py 5 additions, 2 deletionspython/pyspark/sql/dataframe.py
- sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala 48 additions, 7 deletionssql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala
- sql/core/src/test/scala/org/apache/spark/sql/DataFrameSuite.scala 21 additions, 0 deletions.../src/test/scala/org/apache/spark/sql/DataFrameSuite.scala
Loading
Please register or sign in to comment