Re: flattening a list in spark sql

2014-09-10 Thread gtinside
My bad, please ignore, it works !!! -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/flattening-a-list-in-spark-sql-tp13300p13901.html Sent from the Apache Spark User List mailing list archive at Nabble.com

Re: flattening a list in spark sql

2014-09-10 Thread gtinside
ot;) Exception org.apache.spark.sql.catalyst.errors.package$TreeNodeException: Unresolved attributes: 't2, tree: Regards, Gaurav -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/flattening-a-list-in-spark-sql-tp13300p13894.html Sent from the Apache Spark User List mai

Re: flattening a list in spark sql

2014-09-02 Thread Michael Armbrust
> I use use hive context to query on a jsonRDD ? > > Gaurav > > > > -- > View this message in context: > http://apache-spark-user-list.1001560.n3.nabble.com/flattening-a-list-in-spark-sql-tp13300p13320.html > Sent from the Apache Spark Use

Re: flattening a list in spark sql

2014-09-02 Thread gtinside
/flattening-a-list-in-spark-sql-tp13300p13320.html Sent from the Apache Spark User List mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@spark.apache.org For additional commands, e-mail: user-h

Re: flattening a list in spark sql

2014-09-02 Thread Michael Armbrust
r of user per > destination > as follows : > > Number of users:10, Destination:Paris > Number of users:20, Destination:NYC > Number of users:30, Destination:SFO > > To achieve the above mentioned result, I need to flatten out the > destinations array, but I am not sure how to do it.

flattening a list in spark sql

2014-09-02 Thread gtinside
an you please help ? Gaurav -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/flattening-a-list-in-spark-sql-tp13300.html Sent from the Apache Spark User List mailing list archive at Nabble.com. --