Re: SchemaRDD select expression

2014-07-31 Thread Buntu Dev
>> >>> >> On Thu, Jul 31, 2014 at 12:27 PM, buntu wrote: >>> >> > I'm looking to write a select statement to get a distinct count on >>> >> > userId >>> >> > grouped by keyword column on a parquet file SchemaRDD equivalent of: >>

Re: SchemaRDD select expression

2014-07-31 Thread Michael Armbrust
column on a parquet file SchemaRDD equivalent of: >> >> > SELECT keyword, count(distinct(userId)) from table group by keyword >> >> > >> >> > How to write it using the chained select().groupBy() operations? >> >> > >> >> > Thanks! >> >> > >> >> > >> >> > >> >> > -- >> >> > View this message in context: >> >> > >> http://apache-spark-user-list.1001560.n3.nabble.com/SchemaRDD-select-expression-tp11069.html >> >> > Sent from the Apache Spark User List mailing list archive at >> Nabble.com. >> > >> > >> > >

Re: SchemaRDD select expression

2014-07-31 Thread Buntu Dev
gt;> > userId > >> > grouped by keyword column on a parquet file SchemaRDD equivalent of: > >> > SELECT keyword, count(distinct(userId)) from table group by keyword > >> > > >> > How to write it using the chained select().groupBy() operations? >

Re: SchemaRDD select expression

2014-07-31 Thread Zongheng Yang
erId >> > grouped by keyword column on a parquet file SchemaRDD equivalent of: >> > SELECT keyword, count(distinct(userId)) from table group by keyword >> > >> > How to write it using the chained select().groupBy() operations? >> > >> > Thanks! &

Re: SchemaRDD select expression

2014-07-31 Thread Buntu Dev
SELECT keyword, count(distinct(userId)) from table group by keyword > > > > How to write it using the chained select().groupBy() operations? > > > > Thanks! > > > > > > > > -- > > View this message in context: > http://apache-spark-user-lis

Re: SchemaRDD select expression

2014-07-31 Thread Zongheng Yang
; -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/SchemaRDD-select-expression-tp11069.html > Sent from the Apache Spark User List mailing list archive at Nabble.com.

SchemaRDD select expression

2014-07-31 Thread buntu
hanks! -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/SchemaRDD-select-expression-tp11069.html Sent from the Apache Spark User List mailing list archive at Nabble.com.