GitHub user mgaido91 opened a pull request:

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

    [SPARK-22228][SQL] Add support for array<primitive_type> to from_json

    ## What changes were proposed in this pull request?
    
    The fix introduces support for parsing array of primitive types in the 
`from_json` function. Currently, it supports only array of struct, which is 
equivalent to array of JSON objects, but it doesn't allow to parse array of 
simple types, like array of strings (eg. `["this is a valid JSON", "we cannot 
parse before the PR"]`).
    
    ## How was this patch tested?
    
    Added UTs.


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

    $ git pull https://github.com/mgaido91/spark SPARK-22228

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

    https://github.com/apache/spark/pull/19492.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 #19492
    
----
commit cba1f4accaf5dbe305e366eab33879577d7f9a93
Author: Marco Gaido <mga...@hortonworks.com>
Date:   2017-10-11T10:29:26Z

    [SPARK-22228] Add support for array<primitive_type> to from_json

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to