Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 65423 invoked from network); 17 Feb 2007 09:30:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Feb 2007 09:30:30 -0000 Received: (qmail 20882 invoked by uid 500); 17 Feb 2007 09:30:37 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 20672 invoked by uid 500); 17 Feb 2007 09:30:36 -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 20046 invoked by uid 99); 17 Feb 2007 09:30:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Feb 2007 01:30:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Feb 2007 01:30:25 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 910ED7141E5 for ; Sat, 17 Feb 2007 01:30:05 -0800 (PST) Message-ID: <20646432.1171704605576.JavaMail.jira@brutus> Date: Sat, 17 Feb 2007 01:30:05 -0800 (PST) From: "Yip Ng (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-2352) Assertion Failure with order by expression In-Reply-To: <18667177.1171704365787.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-2352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473904 ] Yip Ng commented on DERBY-2352: ------------------------------- Also fails with group by expression. ij> select substr('abc', 1) from t1 group by substr('abc', 1); ERROR XJ001: Java exception: 'ASSERT FAILED col1.getClass() (class org.apache.de rby.iapi.types.SQLVarchar) expected to be the same as col2.getClass() (class org .apache.derby.iapi.types.SQLChar): org.apache.derby.shared.common.sanity.AssertF ailure'. > Assertion Failure with order by expression > ------------------------------------------ > > Key: DERBY-2352 > URL: https://issues.apache.org/jira/browse/DERBY-2352 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.2.2.0, 10.3.0.0 > Environment: Any > Reporter: Yip Ng > > Assertion failure with order by expression: > ij> select substr('abc', 1) from t1 order by substr('abc', 1); > ERROR XJ001: Java exception: 'ASSERT FAILED col1.getClass() (class org.apache.derby.iapi.types.SQLVarchar) expected to be the same as col2.getClass() (class org.apache.derby.iapi.types.SQLChar): org.apache.derby.shared.common.sanity.AssertFailure'. > Stacktrace: > org.apache.derby.shared.common.sanity.AssertFailure: ASSERT FAILED col1.getClass() (class org.apache.derby.iapi.types.SQLVarchar) expected to be the same as col2.getClass() (class org.apache.derby.iapi.types.SQLChar) > at org.apache.derby.shared.common.sanity.SanityManager.THROWASSERT(SanityManager.java:149) > at org.apache.derby.impl.store.access.sort.MergeSort.checkColumnTypes(MergeSort.java:472) > at org.apache.derby.impl.store.access.sort.MergeInserter.insert(MergeInserter.java:106) > at org.apache.derby.impl.sql.execute.SortResultSet.loadSorter(SortResultSet.java:318) > at org.apache.derby.impl.sql.execute.SortResultSet.openCore(SortResultSet.java:269) > at org.apache.derby.impl.sql.execute.ProjectRestrictResultSet.openCore(ProjectRestrictResultSet.java:169) > at org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.open(BasicNoPutResultSetImpl.java:260) > at org.apache.derby.impl.sql.GenericPreparedStatement.execute(GenericPreparedStatement.java:358) > at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1182) > at org.apache.derby.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:585) > at org.apache.derby.impl.jdbc.EmbedStatement.execute(EmbedStatement.java:517) > at org.apache.derby.impl.tools.ij.ij.executeImmediate(ij.java:321) > at org.apache.derby.impl.tools.ij.utilMain.doCatch(utilMain.java:517) > at org.apache.derby.impl.tools.ij.utilMain.runScriptGuts(utilMain.java:370) > at org.apache.derby.impl.tools.ij.utilMain.go(utilMain.java:268) > at org.apache.derby.impl.tools.ij.Main.go(Main.java:204) > at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:170) > at org.apache.derby.impl.tools.ij.Main14.main(Main14.java:56) > at org.apache.derby.tools.ij.main(ij.java:71) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.