[ 
https://issues.apache.org/jira/browse/SPARK-24442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16497087#comment-16497087
 ] 

Reynold Xin commented on SPARK-24442:
-------------------------------------

Actually a pretty good idea. I've often wished there's a way to change it.

 

I'd name it `spark.sql.show.defaultNumRows` though.

 

> Add configuration parameter to adjust the numbers of records and the charters 
> per row before truncation when a user runs.show()
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-24442
>                 URL: https://issues.apache.org/jira/browse/SPARK-24442
>             Project: Spark
>          Issue Type: Improvement
>          Components: Input/Output
>    Affects Versions: 2.2.0, 2.3.0
>            Reporter: Andrew K Long
>            Priority: Minor
>             Fix For: 2.4.0
>
>         Attachments: spark-adjustable-display-size.diff
>
>   Original Estimate: 12h
>  Remaining Estimate: 12h
>
> Currently the number of characters displayed when a user runs the .show() 
> function on a data frame is hard coded. The current default is too small when 
> used with wider console widths.  This fix will add two parameters.
>  
> parameter: "spark.show.default.number.of.rows" default: "20"
> parameter: "spark.show.default.truncate.characters.per.column" default: "20"
>  
> This change will be backwords compatible and will not break any existing 
> functionality nor change the default display characteristics.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to