Group by fields with specific group size
Hello All,
Is there a way we can use group by fields limited to a group size? Group by fields snap doesn’t let us specify a group size, so if we try to create groups based on a field, whether the occurrence of the field is 5 times or 500 times, output of group by fields snap would always be one group with all the object with that one common field together.
What if we want to create different groups with similar field of similar size. For instance, if there is a field called ‘id’ with value ‘5’ and it occurs 20 times in an input, can we create 4 groups out of it with each group containing 5 values. If it were 22, it should create 5 groups.
This is like using group by N and group by field snap together.
Any suggestions or help on this would be really great.
Thank you.
What if we want to create different groups with similar field of similar size. For instance, if there is a field called ‘id’ with value ‘5’ and it occurs 20 times in an input, can we create 4 groups out of it with each group containing 5 values. If it were 22, it should create 5 groups.
You can try with:
After grouping the records by field, to have child pipeline that will receive each group of records, will split, and then using the Group by N Snap to group the records again with specifying the group size.Regards,
Spiro Taleski