1
0
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:
Oleksandr Byelkin
2017-06-20 14:55:30 +02:00
parent f65d6a03f0
commit b76b69cd5f
9 changed files with 65 additions and 37 deletions

View File

@@ -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
###

View File

@@ -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
###