GROUP BY RAND() returns infinite rows [CORE1943] #2382
Commented by: Sean Leyne (seanleyne)
This seems to be a "non-sense case" -- it does not reflected anything close to a real-world scenario -- as such, I think this should be considered a "won't fix" case.
Can you explain why GROUP BY RAND() would ever be used?
Commented by: fabianobonin (fabianobonin)
In my case, i was grouping by a "case", 'cause i need to group some rows from a procedure and keep others not grouped, but as the procedure didn't have a unique column, i used rand() to fake one. I fixed it changing the procedure to return a unique column and using it instead.