为什么在Pig中使用BagToString函数时我们使用group by all子句?

时间:2018-09-17 16:51:18

标签: apache-pig

为什么在Pig中使用BagToString函数时为什么要使用group by all子句?

这是我使用的代码

student = load 'student' using PigStorage(',') as (name:chararray, id:int);

group_data = group student  all;

bag_to_string = foreach group_data generate BagToString(student);

0 个答案:

没有答案