You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Daniel Barclay (Drill) (JIRA)" <ji...@apache.org> on 2015/05/18 21:44:00 UTC

[jira] [Created] (DRILL-3135) Indexing non-arrays yields AssertionError

Daniel Barclay (Drill) created DRILL-3135:
---------------------------------------------

             Summary: Indexing non-arrays yields AssertionError
                 Key: DRILL-3135
                 URL: https://issues.apache.org/jira/browse/DRILL-3135
             Project: Apache Drill
          Issue Type: Bug
            Reporter: Daniel Barclay (Drill)


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)