GitHub user yhuai opened a pull request:

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

    [SPARK-2375][SQL] JSON schema inference may not resolve type conflicts 
correctly for a field inside an array of structs

    For example, for
    ```
    {"array": [{"field":214748364700}, {"field":1}]}
    ```
    the type of field is resolved as IntType. While, for
    ```
    {"array": [{"field":1}, {"field":214748364700}]}
    ```
    the type of field is resolved as LongType.
    
    JIRA: https://issues.apache.org/jira/browse/SPARK-2375

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

    $ git pull https://github.com/yhuai/spark SPARK-2375

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

    https://github.com/apache/spark/pull/1308.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 #1308
    
----
commit 10794eb84f6503348316502d4d6150f157da1d28
Author: Yin Huai <[email protected]>
Date:   2014-07-05T20:08:00Z

    Correctly resolve the type of a field inside an array of structs.

commit 1b2ff9f17fe50ee649e5848d0fbaa39d7d30f2de
Author: Yin Huai <[email protected]>
Date:   2014-07-05T20:08:26Z

    Merge remote-tracking branch 'upstream/master' into SPARK-2375

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to