drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Westin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-3127) LENGTH(..., '') yields StringIndexOutOfBoundsException
Date Wed, 01 Jul 2015 21:52:04 GMT

     [ https://issues.apache.org/jira/browse/DRILL-3127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chris Westin updated DRILL-3127:
--------------------------------
    Fix Version/s: 1.2.0

> LENGTH(..., '') yields StringIndexOutOfBoundsException
> ------------------------------------------------------
>
>                 Key: DRILL-3127
>                 URL: https://issues.apache.org/jira/browse/DRILL-3127
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Data Types
>            Reporter: Daniel Barclay (Drill)
>             Fix For: 1.2.0
>
>
> 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)

Mime
View raw message