GitHub user MaxGekk opened a pull request:

    https://github.com/apache/spark/pull/22534

    [SPARK-25514][SQL] Pretty JSON

    ## What changes were proposed in this pull request?
    
    The PR introduces new JSON option `pretty` which allows to turn on 
`DefaultPrettyPrinter` of `Jackson`'s Json generator. New option is useful in 
exploring of deep nested columns and in converting of JSON columns in more 
readable representation (look at the added test).
    
    ## How was this patch tested?
    
    Added rount trip test which convert an JSON string to pretty representation 
via `from_json()` and `to_json()`.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/MaxGekk/spark-1 pretty-json

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/22534.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #22534
    
----
commit 826e8c3dd5b7e54ebdceee74f30798e1b01bcaed
Author: Maxim Gekk <maxim.gekk@...>
Date:   2018-09-23T18:49:58Z

    Added a round trip tests - from_json and to_json

commit 051c8fd47741637fc9ace6afc059b4b1d18471f5
Author: Maxim Gekk <maxim.gekk@...>
Date:   2018-09-23T19:02:05Z

    Support the pretty option

----


---

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

Reply via email to