mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
MDEV-10880: Assertions keypart_map' or prebuilt->search_tuple->n_fields > 0' fail on DISTINCT and GROUP BY constant
add_group_and_distinct_keys() should take into account JOIN::simple_group.
This commit is contained in:
@@ -133,7 +133,7 @@ count(distinct c)
|
||||
3
|
||||
explain select count(distinct c) from t1;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 range NULL c 5 NULL 6 Using index for group-by (scanning)
|
||||
1 SIMPLE t1 index NULL c 5 NULL 5 Using index
|
||||
###
|
||||
### filesort & range-based utils
|
||||
###
|
||||
|
||||
@@ -133,7 +133,7 @@ count(distinct c)
|
||||
3
|
||||
explain select count(distinct c) from t1;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 range NULL c 5 NULL 6 Using index for group-by (scanning)
|
||||
1 SIMPLE t1 index NULL c 5 NULL 5 Using index
|
||||
###
|
||||
### filesort & range-based utils
|
||||
###
|
||||
|
||||
Reference in New Issue
Block a user