Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D7577D9DA for ; Sun, 9 Sep 2012 03:37:17 +0000 (UTC) Received: (qmail 15319 invoked by uid 500); 9 Sep 2012 03:37:16 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 15029 invoked by uid 500); 9 Sep 2012 03:37:11 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 14950 invoked by uid 99); 9 Sep 2012 03:37:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Sep 2012 03:37:07 +0000 Date: Sun, 9 Sep 2012 14:37:07 +1100 (NCT) From: "Mamta A. Satoor (JIRA)" To: derby-dev@db.apache.org Message-ID: <1286149814.54939.1347161827937.JavaMail.jiratomcat@arcas> In-Reply-To: <1484380255.917.1309880296677.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DERBY-5313) Assert failure with CASE expression in GROUP BY clause MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-5313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451477#comment-13451477 ] Mamta A. Satoor commented on DERBY-5313: ---------------------------------------- I brought my 10.4 codeline to revision 682719 which has revision comments "DERBY-3820: Bump release id on 10.4 branch to 10.4.2.0.". For this revision,with sane=true, I get same exception. Not sure why? I will download official 10.4.2.0 debug version and try it but I don't understand why it will fail for revision 682719 if it works with 10.4.2.0. > 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.5.3.0, 10.6.1.0, 10.6.2.1, 10.7.1.1, 10.8.1.2 > Reporter: Knut Anders Hatlen > Labels: derby_triage10_9 > > 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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira