Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-24442

Add configuration parameter to adjust the numbers of records and the characters per row before truncation when a user runs.show()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Incomplete
    • 2.2.0, 2.3.0
    • None
    • SQL
    • Patch

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            AndrewKLong Andrew K Long
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 12h
                12h
                Remaining:
                Remaining Estimate - 12h
                12h
                Logged:
                Time Spent - Not Specified
                Not Specified