
|
If you were logged in you would be able to see more operations.
|
|
|
|
File Attachments:
|
|
|
Environment:
|
Eclipse 3.2.2; java 1.5.0_11;
|
|
Issue Links:
|
Incorporates
|
|
|
|
This issue is part of:
|
|
DERBY-2034
Tracking of bugs that lead to incorrect results being stored or returned to the client
|
|
|
|
|
Reference
|
|
|
|
This issue is related to:
|
|
DERBY-681
Eliminate the parser's rewriting of the abstract syntax tree for queries with GROUP BY and/or HAVING clauses
|
|
|
|
|
|
|
| Urgency: |
Urgent
|
| Bug behavior facts: |
Regression
|
| Resolution Date: |
24/Jan/08 09:59 PM
|
|
The result of the select is not sorted in "order by COUNT(*) DESC" or "order by COUNT(*) ASC"
create table yy (a double, b double);
insert into yy values (2, 4);
insert into yy values (5, 7);
insert into yy values (2, 3);
insert into yy values (2, 3);
insert into yy values (2, 3);
insert into yy values (2, 3);
insert into yy values (9, 7);
select b, COUNT(*) AS "COUNT_OF", SUM(b) AS "sum b"
from yy
where a = 5 or a = 2
group by b
order by COUNT(*) asc
-- same result as:
select b, COUNT(*) AS "COUNT_OF", SUM(b) AS "sum b"
from yy
where a = 5 or a = 2
group by b
order by COUNT(*) desc
|
|
Description
|
The result of the select is not sorted in "order by COUNT(*) DESC" or "order by COUNT(*) ASC"
create table yy (a double, b double);
insert into yy values (2, 4);
insert into yy values (5, 7);
insert into yy values (2, 3);
insert into yy values (2, 3);
insert into yy values (2, 3);
insert into yy values (2, 3);
insert into yy values (9, 7);
select b, COUNT(*) AS "COUNT_OF", SUM(b) AS "sum b"
from yy
where a = 5 or a = 2
group by b
order by COUNT(*) asc
-- same result as:
select b, COUNT(*) AS "COUNT_OF", SUM(b) AS "sum b"
from yy
where a = 5 or a = 2
group by b
order by COUNT(*) desc
|
Show » |
made changes - 03/Dec/07 08:27 PM
| Field |
Original Value |
New Value |
|
Derby Info
|
[Existing Application Impact]
|
[Existing Application Impact, Regression]
|
made changes - 05/Dec/07 06:32 AM
|
Assignee
|
|
Manish Khettry
[ mkhettry
]
|
made changes - 11/Dec/07 02:20 AM
|
Derby Info
|
[Regression, Existing Application Impact]
|
[Patch Available, Existing Application Impact, Regression]
|
made changes - 13/Dec/07 04:57 PM
|
Attachment
|
|
d3231_v2.patch
[ 12371604
]
|
made changes - 13/Dec/07 04:57 PM
|
Derby Info
|
[Regression, Existing Application Impact, Patch Available]
|
[Regression]
|
made changes - 24/Jan/08 09:59 PM
|
Resolution
|
|
Fixed
[ 1
]
|
|
Fix Version/s
|
|
10.4.0.0
[ 12312540
]
|
|
Fix Version/s
|
|
10.3.2.2
[ 12312885
]
|
|
Status
|
Open
[ 1
]
|
Resolved
[ 5
]
|
made changes - 30/Jun/09 03:55 PM
|
Bug behavior facts
|
|
[Regression]
|
|