Details
-
Task
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
Description
Group-min-max (aka Loose Scan) optimization does not work for reverse-ordered indexes:
looking in opt_range.cc one can see in get_best_group_min_max() :
for (uint i= 0; i < table->actual_n_key_parts(cur_index_info); i++) |
{
|
if (cur_index_info->key_part[i].key_part_flag & HA_REVERSE_SORT) |
{
|
cause="Reverse-ordered (not supported yet)"; |
goto next_index; |
}
|
}
|
This task is to support it.
Attachments
Issue Links
- relates to
-
MDEV-27576 Use DESC indexes for MIN/MAX optimization
- Closed