[Maria-developers] which version MDEV-6991 GROUP_MIN_MAX optimization is erroneously applied in some cases