Indeed it did. Thanks!

Ron


From: Michael Armbrust [mailto:mich...@databricks.com]
Sent: Friday, November 14, 2014 9:53 PM
To: Daniel, Ronald (ELS-SDG)
Cc: user@spark.apache.org
Subject: Re: filtering a SchemaRDD


If I use row[6] instead of row["text"] I get what I am looking for. However, 
finding the right numeric index could be a pain.

Can I access the fields in a Row of a SchemaRDD by name, so that I can map, 
filter, etc. without a trial and error process of finding the right int for the 
fieldname?

row.text should work.

More examples here: 
http://spark.apache.org/docs/1.1.0/sql-programming-guide.html#tab_python_2

Michael

Reply via email to