Github user MaxGekk commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22534#discussion_r219866091
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/json/JSONOptions.scala
 ---
    @@ -113,6 +113,11 @@ private[sql] class JSONOptions(
       }
       val lineSeparatorInWrite: String = lineSeparator.getOrElse("\n")
     
    +  /**
    +   * Generating JSON strings in pretty representation if the parameter 
enabled.
    +   */
    +  val pretty: Boolean = 
parameters.get("pretty").map(_.toBoolean).getOrElse(false)
    --- End diff --
    
    Updated comments for the `json()` method of `DataFrameWriter` since we 
reference to it from `to_json`.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to