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

Switch to Plain View
Pig >> mail # user >> header of a tuple/bag

Copy link to this message
header of a tuple/bag

I am trying query a data set on HDFS using PIG.

Data = LOAD '/user/xx/20130523/*;
x = FOREACH Data GENERATE cookie_id;

I get below error.

<line 2, column 26> Invalid field projection. Projected field [cookie_id]
does not exist

How do i find the column names in the bag "Data" .  The developer who
created the file says, it is coookie_id.
Is there any way I could get schema/header for this?
Pradeep Gollakota 2013-07-16, 18:30