Re: How to acess the WrappedArray

2016-08-29 Thread Bedrytski Aliaksandr
on* (4M) Download Attachment[1] > > View this message in context:How to acess the WrappedArray[2] > Sent from the Apache Spark User List mailing list archive[3] at > Nabble.com. Links: 1. http://apache-spark-user-list.1001560.n3.nabble.com/attachment/27615/0/rows_salaries.json 2. http://apache-spark-user-list.1001560.n3.nabble.com/How-to-acess-the-WrappedArray-tp27615.html 3. http://apache-spark-user-list.1001560.n3.nabble.com/

Re: How to acess the WrappedArray

2016-08-29 Thread Denis Bolshakov
Hello, Not sure that it will help, but I would do the following 1. Need to create a case class which matches your json schema. 2. Change the following line: old: Dataset rows_salaries = spark.read().json("/Users/ sreeharsha/Downloads/rows_salaries.json"); new: Dataset rows_salaries = spark.read()

How to acess the WrappedArray

2016-08-29 Thread Sreeharsha
35.44)) Expecting Output: Need elements from the WrappedArray Below you can find the attachment of .json file rows_salaries.json (4M) <http://apache-spark-user-list.1001560.n3.nabble.com/attachment/27615/0/rows_salaries.json> -- View this message in context: http://apach