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

    https://github.com/apache/spark/pull/22226#discussion_r213177790
  
    --- Diff: python/pyspark/sql/functions.py ---
    @@ -2289,12 +2289,10 @@ def from_json(col, schema, options={}):
     @since(2.1)
     def to_json(col, options={}):
         """
    -    Converts a column containing a :class:`StructType`, :class:`ArrayType` 
of
    -    :class:`StructType`\\s, a :class:`MapType` or :class:`ArrayType` of 
:class:`MapType`\\s
    +    Converts a column containing a :class:`StructType`, :class:`ArrayType` 
or a :class:`MapType`
         into a JSON string. Throws an exception, in the case of an unsupported 
type.
     
    -    :param col: name of column containing the struct, array of the 
structs, the map or
    -        array of the maps.
    +    :param col: name of column containing a struct, an array or a map.
         :param options: options to control converting. accepts the same 
options as the json datasource
    --- End diff --
    
    ditto


---

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

Reply via email to