Issue Details (XML | Word | Printable)

Key: DERBY-519
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Knut Anders Hatlen
Reporter: Knut Anders Hatlen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

GROUP BY test depends on incorrect behaviour

Created: 19/Aug/05 11:41 PM   Updated: 10/Apr/06 11:26 PM
Return to search
Component/s: SQL
Affects Version/s: 10.2.1.6
Fix Version/s: 10.2.1.6

Time Tracking:
Not Specified

Issue Links:
Dependants
 

Resolution Date: 10/Apr/06 11:26 PM


 Description  « Hide
One of the test cases in the GROUP BY test depends on incorrect behaviour.

A section in java/testing/org/apache/derbyTesting/functionTests/master/groupBy.out looks like this:

ij> -- group by expression
select expr1, expr2
from (select i * s, c || v from t) t (expr1, expr2) group by expr2, expr1 order by expr2,expr1;
EXPR1 |EXPR2
------------------------------------------------------------------------
0 |goodbye everyone is here
0 |hello everyone is here
0 |hello everyone is here
100 |hello everyone is here
0 |hello noone is here
NULL |NULL

Since the result should be grouped by expr2 and expr1, it shouldn't have duplicate entries. The output is however specified to have two identical rows (0, 'hello everyone is here').

This test will fail if the query is executed correctly.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.