Github user kiszk commented on a diff in the pull request:
https://github.com/apache/spark/pull/22162#discussion_r212832804
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala ---
@@ -815,6 +815,24 @@ class Dataset[T] private[sql](
println(showString(numRows, truncate, vertical))
// scalastyle:on println
+ /**
+ * Returns the default number of rows to show when the show function is
called without
+ * a user specified max number of rows.
+ * @since 2.3.0
+ */
+ private def numberOfRowsToShow(): Int = {
+ this.sparkSession.conf.get("spark.sql.show.defaultNumRows", "20").toInt
+ }
+
+ /**
+ * Returns the default max characters per column to show before
truncation when
+ * the show function is called with truncate.
+ * @since 2.3.0
+ */
+ private def maxCharactersPerColumnToShow(): Int = {
+ this.sparkSession.conf.get("spark.sql.show.truncateMaxCharsPerColumn",
"20").toInt
--- End diff --
ditto
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]