RE: filtering a SchemaRDD

2014-11-16 Thread Daniel, Ronald (ELS-SDG)
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

Re: filtering a SchemaRDD

2014-11-14 Thread Vikas Agarwal
Hi, did you try using single quote instead of double around column name? I faced similar situation with apache phoenix. On Saturday, November 15, 2014, Daniel, Ronald (ELS-SDG) r.dan...@elsevier.com wrote: Hi all, I have a SchemaRDD that Is loaded from a file. Each Row contains 7 fields,

Re: filtering a SchemaRDD

2014-11-14 Thread Michael Armbrust
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