[ 
https://issues.apache.org/jira/browse/DRILL-1089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14046318#comment-14046318
 ] 

Mehant Baid commented on DRILL-1089:
------------------------------------

Looks like the change to Drill's optiq fork to increase scale and precision 
might have broken this, because there have been no changes in the function 
itself.

> SUBSTRING(string, from) function fails
> --------------------------------------
>
>                 Key: DRILL-1089
>                 URL: https://issues.apache.org/jira/browse/DRILL-1089
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>            Reporter: Krystal
>
> git.commit.id.abbrev=3ea8eb5
> git.build.time=26.06.2014 @ 14\:15\:29 PDT
> The following query ran successfully in the last build; but failed in the 
> latest build.
> 0: jdbc:drill:schema=dfs> select substring(name, 5) from voter where age < 20;
> message: "Failure while setting up Foreman. < AssertionError:[ 
> typeName.allowsPrecScale(true, false) ]"
> ]
> If I use substr instead of substring, then the query succeeds.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to