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 EDE7F109EE for ; Mon, 10 Mar 2014 08:12:45 +0000 (UTC) Received: (qmail 48501 invoked by uid 500); 10 Mar 2014 08:12:45 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 48279 invoked by uid 500); 10 Mar 2014 08:12:45 -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 48266 invoked by uid 99); 10 Mar 2014 08:12:44 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Mar 2014 08:12:44 +0000 Date: Mon, 10 Mar 2014 08:12:44 +0000 (UTC) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (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:all-tabpanel ] Knut Anders Hatlen resolved DERBY-5313. --------------------------------------- Resolution: Fixed Fix Version/s: 10.11.0.0 Issue & fix info: High Value Fix,Repro attached (was: High Value Fix,Patch Available,Repro attached) > 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: Knut Anders Hatlen > Labels: derby_triage10_11, derby_triage10_9 > Fix For: 10.11.0.0 > > 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.2#6252)