Reputation: 169
I am working on PIG programming,
grunt> dividends = load 'NYSE_dividends' as>> (exchange:chararray, symbol:chararray, date:chararray, dividend:float);
grunt> LIMIT dividends 10;
But i am not sure why i getting this error :
[main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during parsing. Encountered " <IDENTIFIER> "LIMIT "" at line 3, column 1.
My data link is Data Link
Please help me to find out the issue!!!
Upvotes: 0
Views: 1734
Reputation: 4724
The reason is you didn't assign the output relation. Can you change like this?
grunt> result = LIMIT dividends 10;
grunt> DUMP result;
Upvotes: 1