Issue Details (XML | Word | Printable)

Key: DERBY-219
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Bernt M. Johnsen
Votes: 0
Watchers: 0
Operations

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

EXCEPT/INTERSECT fails in views

Created: 13/Apr/05 04:47 AM   Updated: 21/Apr/05 09:51 AM
Return to search
Component/s: SQL
Affects Version/s: 10.1.1.0
Fix Version/s: 10.1.1.0

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works intersect.diff 2005-04-14 12:50 AM Jack Klebanoff 5 kB
Environment:
Linux 2.4.20-31.9
java version "1.4.2_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_02-b03)
Java HotSpot(TM) Client VM (build 1.4.2_02-b03, mixed mode)

Resolution Date: 21/Apr/05 09:28 AM


 Description  « Hide
EXCEPT or INTERSECT in views give:

ERROR XJ001: Java exception: 'ASSERT FAILED costEstimate is not expected to be null for org.apache.derby.impl.sql.compile.SelectNode: org.apache.derby.iapi.services.sanity.AssertFailure

To recreate, run:

create table tab1 (i integer primary key);
insert into tab1 values (1),(2),(3),(4);
create table tab2 (i integer primary key);
insert into tab2 values (2),(4);
create view view1 as select * from tab1 intersect select * from tab2;
select * from view1;
.

 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.