Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 10.1.1.0
    • Fix Version/s: 10.1.1.0
    • Component/s: SQL
    • Labels:
      None
    • 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)

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

      1. intersect.diff
        5 kB
        Jack Klebanoff

        Activity

        Hide
        Satheesh Bandaram added a comment -

        Fix checked in.

        Show
        Satheesh Bandaram added a comment - Fix checked in.
        Hide
        Satheesh Bandaram added a comment -

        Fix made by Jack checked in to SVN.

        Show
        Satheesh Bandaram added a comment - Fix made by Jack checked in to SVN.
        Hide
        Jack Klebanoff added a comment -

        The bug affects any subquery. So
        select * from (select * from tab1 intersect select * from tab2);
        fails in the same way that as the query that used a view.

        Show
        Jack Klebanoff added a comment - The bug affects any subquery. So select * from (select * from tab1 intersect select * from tab2); fails in the same way that as the query that used a view.
        Hide
        Jack Klebanoff added a comment -

        [PATCH] I have attached a fix.

        Show
        Jack Klebanoff added a comment - [PATCH] I have attached a fix.

          People

          • Assignee:
            Unassigned
            Reporter:
            Bernt M. Johnsen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development