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

[jira] [Created] (DRILL-3127) LENGTH(..., '') yields StringIndexOutOfBoundsException

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

             Summary: LENGTH(..., '') yields StringIndexOutOfBoundsException
                 Key: DRILL-3127
                 URL: https://issues.apache.org/jira/browse/DRILL-3127
             Project: Apache Drill
          Issue Type: Bug
            Reporter: Daniel Barclay (Drill)


Trying to make a function call with a function name of "{{LENGTH}}", with two arguments, and with the second argument being an empy string literal yields a StringIndexOutOfBoundsException:

{noformat}
0: jdbc:drill:zk=local> SELECT LENGTH('','') FROM INFORMATION_SCHEMA.CATALOGS;
Error: SYSTEM ERROR: java.lang.StringIndexOutOfBoundsException: String index out of range: 1


[Error Id: 5afea96b-c9cc-45be-866c-8cfaa3917796 on dev-linux2:31010] (state=,code=0)
0: jdbc:drill:zk=local> 
{noformat}






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)