MAL: How to interate through group values?

Gatis Ozoliņš g.ozolins at
Wed Nov 30 08:18:44 CET 2016

I am trying to create my own MAL aggregate function.
I have implemented main function and it works OK:
function group_concat(b:bat[:oid, :str],s:bat[:oid, :str]):str;
       sep := "";
       barrier (h, t) :=;
           sep := t;
       exit (h, t);

       value := nil:str;
       barrier (h, t) :=;
              barrier bnormal := value;
                  value := value + sep;
                  value := value + t;
              exit bnormal;
              barrier bnil := calc.isnil(value);
                  value := t;
              exit bnil;
              redo (h, t) :=;
       exit (h, t);
       return value;
end group_concat;

Now I need to implemented subfunction with following definition:

I can iterate over all groups g, but I can't find correct MAL function to
get all values (b,s) for this specific group.

Which MAL function would return list of oid for specific group g entry ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the developers-list mailing list