pig FILTER ERROR 1000:解析时出错。遭遇

pig FILTER ERROR 1000: Error during parsing. Encountered

这个脚本工作正常

data1 = LOAD '/user/maria_dev/ml-100k/test/u3.data' AS (usesrID:int, movieID:int, rating:int, ratingTime:int);
DUMP data1;

输出是

当我使用 FILTER 然后 PIG 通过错误时

data1 = LOAD '/user/maria_dev/ml-100k/test/u3.data' AS (usesrID:int, movieID:int, rating:int, ratingTime:int);
filterRowData1=filter data1 by (int)movieID == 556;
DUMP filterRowData1;

错误的屏幕截图 错误详细信息:

2018-10-20 23:20:24,653 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during parsing. Encountered " "filterRowData1=filter "" at line 2, column 1.

我也试过了

data1 = LOAD '/user/maria_dev/ml-100k/test/u3.data' AS (usesrID:int, movieID:int, rating:int, ratingTime:int);
filterRowData1=filter data1 by movieID == 556; (i have tried: '556'; but no luck)
DUMP filterRowData1;
filterRowData1 = filter data1 by movieID == 556;

您应该 space 在别名和查询之间。