Bug #9799 Rollup crash with avg(distinct)
Submitted: 11 Apr 2005 0:12 Modified: 17 May 2005 20:29
Reporter: Peter Gulutzan Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: Optimizer Severity:S1 (Critical)
Version:5.0.5-beta-debug OS:Linux (SUSE 9.2)
Assigned to: Jani Tolonen CPU Architecture:Any

[11 Apr 2005 0:12] Peter Gulutzan
If I use AVG(DISTINCT), which is a relatively new feature, with GROUP BY ... WITH ROLLUP,

How to repeat:
mysql> create table t5 (s1 int) engine=myisam;
Query OK, 0 rows affected (0.00 sec)

mysql> insert into t5 values (0);
Query OK, 1 row affected (0.00 sec)

mysql> select avg(distinct s1) from t5 group by s1 with rollup;
ERROR 2013 (HY000): Lost connection to MySQL server during query
[11 Apr 2005 0:18] MySQL Verification Team
Thank you for the bug report.
[6 May 2005 14:49] Jani Tolonen
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
[17 May 2005 20:29] Paul DuBois
Noted in 5.0.6 changelog.