PIG:ERROR 1200:<第15行,=“”列=“”66 =“”>输入不匹配&#39; ==&#39;期待正确

时间:2017-01-13 12:24:51

标签: hadoop apache-pig

执行测试语句时出错

F = foreach D generate flatten(group),SUM(r1.description == 'COLLECTION' ? r1.scoring : null),SUM(r1.lookup_descrition== 'Probability' ? r1.scoring: null);

错误消息

2017-01-13 09:12:42,368 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <line 15, column 66>  mismatched input '==' expecting RIGHT_PAREN

1 个答案:

答案 0 :(得分:0)

缺少空格r1.lookup_descrition==

F = foreach D generate flatten(group),
          SUM(r1.description == 'COLLECTION' ? r1.scoring : null),
          SUM(r1.lookup_descrition == 'Probability' ? r1.scoring : null);