[ 
https://issues.apache.org/jira/browse/DERBY-5313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14156754#comment-14156754
 ] 

ASF subversion and git services commented on DERBY-5313:
--------------------------------------------------------

Commit 1629018 from mi...@apache.org in branch 'code/branches/10.10'
[ https://svn.apache.org/r1629018 ]

DERBY-5313: Assert failure with CASE expression in GROUP BY clause

backported change #1575866 from trunk to 10.10 branch, had to do hand
    merging due to jdk5 code differences in 10.11.

Remove assert that doesn't expect expressions in the GROUP BY list.

> Assert failure with CASE expression in GROUP BY clause
> ------------------------------------------------------
>
>                 Key: DERBY-5313
>                 URL: https://issues.apache.org/jira/browse/DERBY-5313
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 10.4.2.1, 10.5.3.0, 10.6.1.0, 10.6.2.1, 10.7.1.1, 
> 10.8.1.2
>            Reporter: Knut Anders Hatlen
>            Assignee: Mike Matrigali
>              Labels: derby_triage10_11, derby_triage10_9
>             Fix For: 10.11.1.1
>
>         Attachments: d5313-1a.diff
>
>
> 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'.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to