RE: Dataframe nested schema inference from Json without type conflicts

2015-10-23 Thread Ewan Leith
he.org Subject: Re: Dataframe nested schema inference from Json without type conflicts Hi Ewan, For your use case, you only need the schema inference to pick up the structure of your data (basically you want spark sql to infer the type of complex values like arrays and structs but keep the type o

Re: Dataframe nested schema inference from Json without type conflicts

2015-10-05 Thread Yin Huai
stantly evolve), > its fantastic how Spark picks up on that data and includes it. > > > > Passing in a fixed schema loses that nice additional ability, though it's > what we'll probably have to adopt if we can't come up with a way to keep > the inference working. > > >

Re: Dataframe nested schema inference from Json without type conflicts

2015-10-05 Thread Ewan Leith
mailto:dev@spark.apache.org> Subject: Re: Dataframe nested schema inference from Json without type conflicts Exactly, that's a much better way to put it. Thanks, Ewan -- Original message-- From: Yin Huai Date: Thu, 1 Oct 2015 23:54 To: Ewan Leith; Cc: r...@datab

RE: Dataframe nested schema inference from Json without type conflicts

2015-10-05 Thread Ewan Leith
ema inference from Json without type conflicts Exactly, that's a much better way to put it. Thanks, Ewan -- Original message-- From: Yin Huai Date: Thu, 1 Oct 2015 23:54 To: Ewan Leith; Cc: r...@databricks.com;dev@spark.apache.org<mailto:r...@databricks.com;dev@spark.apac

Re: Dataframe nested schema inference from Json without type conflicts

2015-10-01 Thread Reynold Xin
You can pass the schema into json directly, can't you? On Thu, Oct 1, 2015 at 10:33 AM, Ewan Leith wrote: > Hi all, > > > > We really like the ability to infer a schema from JSON contained in an > RDD, but when we’re using Spark Streaming on small batches of data, we

Re: Dataframe nested schema inference from Json without type conflicts

2015-10-01 Thread Yin Huai
*Date: *Thu, 1 Oct 2015 22:12 > > *To: *Ewan Leith; > > *Cc: *dev@spark.apache.org; > > *Subject:*Re: Dataframe nested schema inference from Json without type > conflicts > > > You can pass the schema into json directly, can't you? > > On Thu, Oct 1, 2015 at 10:33 AM

Re: Dataframe nested schema inference from Json without type conflicts

2015-10-01 Thread Ewan Leith
We could, but if a client sends some unexpected records in the schema (which happens more than I'd like, our schema seems to constantly evolve), its fantastic how Spark picks up on that data and includes it. Passing in a fixed schema loses that nice additional ability, though it's what we'll

Re: Dataframe nested schema inference from Json without type conflicts

2015-10-01 Thread Ewan Leith
Exactly, that's a much better way to put it. Thanks, Ewan -- Original message-- From: Yin Huai Date: Thu, 1 Oct 2015 23:54 To: Ewan Leith; Cc: r...@databricks.com;dev@spark.apache.org; Subject:Re: Dataframe nested schema inference from Json without type conflicts Hi Ewan, For