Re: error: value toDS is not a member of Seq[Int] SQL

2016-04-27 Thread Sachin Aggarwal
for me it works, with out making any other change, try importing import sqlContext.implicits._ otherwise verify if u are able to run other functions or u have some issue with ur setup. Welcome to __ / __/__ ___ _/ /__ _\ \/ _ \/ _ `/ __/ '_/ /___/

Re: error: value toDS is not a member of Seq[Int] SQL

2016-04-27 Thread shengshanzhang
1.6.1 > 在 2016年4月27日,下午6:28,Sachin Aggarwal 写道: > > what is ur spark version? > > On Wed, Apr 27, 2016 at 3:12 PM, shengshanzhang > wrote: > Hi, > > On spark website, there is code as follows

Re: error: value toDS is not a member of Seq[Int] SQL

2016-04-27 Thread Ted Yu
Did you do the import as the first comment shows ? > On Apr 27, 2016, at 2:42 AM, shengshanzhang wrote: > > Hi, > > On spark website, there is code as follows showing how to create > datasets. > > > However when i input this line into

Re: error: value toDS is not a member of Seq[Int] SQL

2016-04-27 Thread Sachin Aggarwal
what is ur spark version? On Wed, Apr 27, 2016 at 3:12 PM, shengshanzhang wrote: > Hi, > > On spark website, there is code as follows showing how to create datasets. > > > However when i input this line into spark-shell,there comes a Error, and > who can tell me Why

error: value toDS is not a member of Seq[Int] SQL

2016-04-27 Thread shengshanzhang
Hi, On spark website, there is code as follows showing how to create datasets. However when i input this line into spark-shell,there comes a Error, and who can tell me Why and how to fix this? scala> val ds = Seq(1, 2, 3).toDS() :35: error: value toDS is not a member of