Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 26CEF18EDB for ; Wed, 1 Jul 2015 21:50:05 +0000 (UTC) Received: (qmail 94325 invoked by uid 500); 1 Jul 2015 21:50:05 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 94297 invoked by uid 500); 1 Jul 2015 21:50:05 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 94287 invoked by uid 99); 1 Jul 2015 21:50:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2015 21:50:05 +0000 Date: Wed, 1 Jul 2015 21:50:05 +0000 (UTC) From: "Chris Westin (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-3135) Indexing non-arrays yields AssertionError 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/DRILL-3135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Westin updated DRILL-3135: -------------------------------- Fix Version/s: 1.2.0 > Indexing non-arrays yields AssertionError > ----------------------------------------- > > Key: DRILL-3135 > URL: https://issues.apache.org/jira/browse/DRILL-3135 > Project: Apache Drill > Issue Type: Bug > Components: Execution - Data Types > Reporter: Daniel Barclay (Drill) > Assignee: Daniel Barclay (Drill) > Fix For: 1.2.0 > > > Trying to index into a non-array yields an AssertionError (with no error message other than a type name) rather that a message referring to the problem (e.g., that an array indexing operation was applied to an expression whose type turned out to be a non-array type): > {noformat} > 0: jdbc:drill:zk=local> SELECT catalog_name[1] FROM INFORMATION_SCHEMA.CATALOGS; > Error: SYSTEM ERROR: java.lang.AssertionError: VARCHAR > [Error Id: e6d65be4-c5cd-4b89-8d6c-a332ac578d23 on dev-linux2:31010] (state=,code=0) > 0: jdbc:drill:zk=local> SELECT '123'[1] FROM INFORMATION_SCHEMA.CATALOGS; > Error: SYSTEM ERROR: java.lang.AssertionError: CHAR > [Error Id: 8c5a10e7-34f7-427e-98be-22c13c39b0cc on dev-linux2:31010] (state=,code=0) > 0: jdbc:drill:zk=local> SELECT CAST('123' as INTEGER)[1] FROM INFORMATION_SCHEMA.CATALOGS; > Error: SYSTEM ERROR: java.lang.AssertionError: INTEGER > [Error Id: b63a518f-0071-4c66-b051-fb54c724c090 on dev-linux2:31010] (state=,code=0) > 0: jdbc:drill:zk=local> > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)