685
685
We have found that grouping can be removed since groups correspond to
686
686
only one row anyway, but we still have to guarantee correct result
687
687
order. The line below effectively rewrites the query from GROUP BY
689
689
- if skip_sort_order is set (see above), then we can simply skip
692
692
with the GROUP BY ones, i.e. either one is a prefix of another.
694
694
test_if_subpart() copies the ASC/DESC attributes from the original
696
696
If GROUP BY is a prefix of order_st BY, then it is safe to leave