> > > 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