Re: filter expression in API document for DataFrame

2015-03-25 Thread Michael Armbrust
Yeah sorry, this is already fixed but we need to republish the docs.  I'll
add both of the following do work:

people.filter(age  30)
people.filter(people(age)  30)



On Tue, Mar 24, 2015 at 7:11 PM, SK skrishna...@gmail.com wrote:



 The following statement appears in the Scala API example at

 https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.sql.DataFrame

 people.filter(age  30).

 I tried this example and it gave a compilation error. I think this needs to
 be changed to people.filter(people(age)  30)

 Also, it would be good to add some examples for the new equality operator
 for columns (e.g. (people(age) === 30) ). The programming guide does not
 have an example for this in the DataFrame Operations section and it was not
 very obvious that we need to be using a different equality operator for
 columns.


 thanks



 --
 View this message in context:
 http://apache-spark-user-list.1001560.n3.nabble.com/filter-expression-in-API-document-for-DataFrame-tp22213.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...@spark.apache.org




filter expression in API document for DataFrame

2015-03-24 Thread SK


The following statement appears in the Scala API example at
https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.sql.DataFrame

people.filter(age  30).

I tried this example and it gave a compilation error. I think this needs to
be changed to people.filter(people(age)  30)

Also, it would be good to add some examples for the new equality operator
for columns (e.g. (people(age) === 30) ). The programming guide does not
have an example for this in the DataFrame Operations section and it was not
very obvious that we need to be using a different equality operator for
columns. 


thanks



--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/filter-expression-in-API-document-for-DataFrame-tp22213.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...@spark.apache.org