Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-219

EXCEPT/INTERSECT fails in views

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.1.1.0
    • 10.1.1.0
    • SQL
    • None
    • 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)

    Description

      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;
      .

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            bernt Bernt Johnsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment