我得到了
Undefined alias: ZZ
这个宏上的错误:
define chop (my, name, maxev) returns grouped, massive {
gr = foreach (group $my by id) generate group as id, $name;
split gr into
massive if COUNT($name) > $maxev,
ZZ otherwise;
$grouped = ZZ;
$massive = foreach massive generate id, COUNT($name) as $name;
};
A, massive = chop(A, 'abc', '$MAX_EVENTS');
当我尝试
时 split gr into
massive if COUNT($name) > $maxev,
$grouped otherwise;
相反,我得到了
Macro 'chop' missing return alias: grouped