Issue #21858:change group by in summarized query