Re: [SQL] Conflicts in inferred Json Schemas

2015-01-25 Thread Tobias Pfeiffer
Hi, On Thu, Jan 22, 2015 at 2:26 AM, Corey Nolet wrote: > Let's say I have 2 formats for json objects in the same file > schema1 = { "location": "12345 My Lane" } > schema2 = { "location":{"houseAddres":"1234 My Lane"} } > > From my tests, it looks like the current inferSchema() function will en

[SQL] Conflicts in inferred Json Schemas

2015-01-21 Thread Corey Nolet
Let's say I have 2 formats for json objects in the same file schema1 = { "location": "12345 My Lane" } schema2 = { "location":{"houseAddres":"1234 My Lane"} } >From my tests, it looks like the current inferSchema() function will end up with only StructField("location", StringType). What would be