spark-instrumented-optimizer/python/pyspark/sql
zsxwing 12671dd5e4 [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:

![screen shot 2015-06-18 at 4 34 51 pm](https://cloud.githubusercontent.com/assets/1000778/8227339/14d3c5ea-15d9-11e5-99b9-f00b7e93beef.png)

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.

![screen shot 2015-06-18 at 4 21 44 pm](https://cloud.githubusercontent.com/assets/1000778/8227407/b6f8dcac-15d9-11e5-8219-8079280d76fc.png)

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
2015-06-29 23:44:11 -07:00
..
__init__.py [SPARK-8060] Improve DataFrame Python test coverage and documentation. 2015-06-03 00:23:34 -07:00
column.py [SPARK-8573] [SPARK-8568] [SQL] [PYSPARK] raise Exception if column is used in booelan expression 2015-06-23 15:51:16 -07:00
context.py [SPARK-8070] [SQL] [PYSPARK] avoid spark jobs in createDataFrame 2015-06-29 13:20:55 -07:00
dataframe.py [SPARK-8434][SQL]Add a "pretty" parameter to the "show" method to display long strings 2015-06-29 23:44:11 -07:00
functions.py [SPARK-8235] [SQL] misc function sha / sha1 2015-06-29 11:57:19 -07:00
group.py [SPARK-7322, SPARK-7836, SPARK-7822][SQL] DataFrame window function related updates 2015-05-23 08:30:05 -07:00
readwriter.py [SPARK-8698] partitionBy in Python DataFrame reader/writer interface should not default to empty tuple. 2015-06-29 00:22:44 -07:00
tests.py [SPARK-8056][SQL] Design an easier way to construct schema for both Scala and Python 2015-06-29 14:15:15 -07:00
types.py [SPARK-8056][SQL] Design an easier way to construct schema for both Scala and Python 2015-06-29 14:15:15 -07:00
window.py [SPARK-8146] DataFrame Python API: Alias replace in df.na 2015-06-07 01:21:02 -07:00