Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Pig >> mail # user >> Cannot find field in a tuple

Copy link to this message
Cannot find field in a tuple

I'm using Pig over Cassandra. I use the following script :

rows = LOAD 'cassandra://pns_fr/light_column' USING CassandraStorage();
group_filtre = GROUP rows BY filtre;
somme = FOREACH group_filtre GENERATE SUM(rows.value_1.value);

the matter is that I get the following error :

Cannot find field value in value_1:tuple(name:chararray,value:int)

I don't understand as I can see that field value is part of value_1 tuple in the error ...

FYI, here is a dump of group_filtre :


what's going wrong ?


Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
France Telecom - Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, France Telecom - Orange is not liable for messages that have been modified, changed or falsified.
Thank you.