romainr / PigEditor

Eclipse plugin for Apache Pig
http://romainr.github.com/PigEditor
33 stars 13 forks source link

False positive errors reported. #12

Open jasonpolites opened 12 years ago

jasonpolites commented 12 years ago

The following lines of a pig file are reported as errors:

a = load 'sample.txt' using com.meta.pigudf.JsonLoader() as (json:map[]);

Reported as:

extraneous input 'JsonLoader' expecting '('

This line:

e = foreach d generate group, id, COUNT($1) as count;

Reports multiple errors:

no viable alternative at input '$' no viable alternative at input 'count'

Finally:

f = filter e by count > 1;

Reported as:

mismatched input '>' expecting '('

The script runs without error in Pig 0.9.2