I encountered a problem where when using a group_by clause in the source query, the thing would crash. The reason for that turned out to be the way in which a count query was constructed from the original query. It was returning a number of rows in each group and not the number of groups.
The fix is simply to tweak the construction of the count query a bit.
I encountered a problem where when using a group_by clause in the source query, the thing would crash. The reason for that turned out to be the way in which a count query was constructed from the original query. It was returning a number of rows in each group and not the number of groups.
The fix is simply to tweak the construction of the count query a bit.