0
count_bool受到损害单元组,其具有下面的输出,当我转储:压扁和计数1元组
(0)
...
(1)
(0)
...
(0)
因此,如果有100 - (0)和20 - (1)I想要的输出是:
(1, 20)
(0, 100)
这里是我试图拉平和计数
count_by_xy = foreach count_by_subject generate flatten($0), COUNT($0);
2013-07-09 00:05:43,590 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1045:
Could not infer the matching function for org.apache.pig.builtin.COUNT as multiple or none of them fit. Please use an explicit cast.
什么是我的问题吗?