To avoid confusion, the query i am referring above is over some numeric
element inside *a: struct (nullable = true).*
On Mon, Jul 24, 2017 at 4:04 PM, Patrick wrote:
> Hi,
>
> On reading a complex JSON, Spark infers schema as following:
>
> root
> |-- header: struct (nullable = true)
> ||-
Hi,
On reading a complex JSON, Spark infers schema as following:
root
|-- header: struct (nullable = true)
||-- deviceId: string (nullable = true)
||-- sessionId: string (nullable = true)
|-- payload: struct (nullable = true)
||-- deviceObjects: array (nullable = true)
||