我遇到了这个我无法解决的语法错误;
grunt> describe x;
x: {id: int,b: {(first: int,second: int)}}
grunt> res = foreach x {f = FLATTEN(b); generate id,f;}
2013-07-22 12:28:53,050 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <line 11, column 21> Syntax error, unexpected symbol at or near 'FLATTEN'
我该怎么做?
1条答案
按热度按时间wb1gzix01#
看到了吗http://pig.apache.org/docs/r0.11.0/basic.html#foreach
嵌套块中只允许交叉、互异、筛选、foreach、limit和order by。
尝试