pig:error 1200:< line 15,column 66>不匹配的输入“==”应该是正确的

rwqw0loc  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(394)

执行test语句时出错

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
u3r8eeie

u3r8eeie1#

缺少一个空格 r1.lookup_descrition== ```
F = foreach D generate flatten(group),
SUM(r1.description == 'COLLECTION' ? r1.scoring : null),
SUM(r1.lookup_descrition == 'Probability' ? r1.scoring : null);

相关问题