[
https://issues.apache.org/jira/browse/SPARK-2375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Armbrust resolved SPARK-2375.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.0.2
1.1.0
> JSON schema inference may not resolve type conflicts correctly for a field
> inside an array of structs
> -----------------------------------------------------------------------------------------------------
>
> Key: SPARK-2375
> URL: https://issues.apache.org/jira/browse/SPARK-2375
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 1.0.1
> Reporter: Yin Huai
> Assignee: Yin Huai
> Fix For: 1.1.0, 1.0.2
>
>
> For example, for
> {code}
> {"array": [{"field":214748364700}, {"field":1}]}
> {code}
> the type of field is resolved as IntType. While, for
> {code}
> {"array": [{"field":1}, {"field":214748364700}]}
> {code}
> the type of field is resolved as LongType.
--
This message was sent by Atlassian JIRA
(v6.2#6252)