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

Assert failure with CASE expression in GROUP BY clause

    XMLWordPrintableJSON

Details

    • Normal
    • High Value Fix, Repro attached
    • Regression

    Description

      I see the following assert failure with debug jars on 10.5.3.0 and later (doesn't fail on 10.5.1.1 and earlier):

      ij> create table t(x int);
      0 rows inserted/updated/deleted
      ij> insert into t values 1;
      1 row inserted/updated/deleted
      ij> select case when a=1 then 1 else 2 end
      from t t1(a) join t t2(b) on a=b
      group by case when a=1 then 1 else 2 end;
      ERROR XJ001: Java exception: 'ASSERT FAILED retVN expected to be instanceof ColumnReference, not org.apache.derby.impl.sql.compile.ConditionalNode: org.apache.derby.shared.common.sanity.AssertFailure'.

      Attachments

        1. d5313-1a.diff
          3 kB
          Knut Anders Hatlen

        Issue Links

          Activity

            People

              knutanders Knut Anders Hatlen
              knutanders Knut Anders Hatlen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: