You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Aman Sinha (JIRA)" <ji...@apache.org> on 2014/06/13 08:29:02 UTC

[jira] [Commented] (DRILL-727) indexoutofboundexception while setting up foreman

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

Aman Sinha commented on DRILL-727:
----------------------------------

Uploaded patch with a fix and unit tests. 

> indexoutofboundexception while setting up foreman
> -------------------------------------------------
>
>                 Key: DRILL-727
>                 URL: https://issues.apache.org/jira/browse/DRILL-727
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Query Planning & Optimization
>            Reporter: Chun Chang
>            Assignee: Aman Sinha
>            Priority: Critical
>             Fix For: 1.0.0-BETA1
>
>         Attachments: 0001-Fix-DRILL-727-During-logical-transformation-phase-us.patch
>
>
> drill:
> 0: jdbc:drill:schema=dfs> select cast(c_groupby as varchar(5)) from data order by c_groupby;
> Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while running query.[error_id: "398b5e7a-d263-4b23-8233-d911e781e91a"
> endpoint {
>   address: "qa-node120.qa.lab"
>   user_port: 31010
>   control_port: 31011
>   data_port: 31012
> }
> error_type: 0
> message: "Failure while setting up Foreman. < AssertionError:[ Internal error: Error while applying rule ExpandConversionRule, args [rel#2332:AbstractConverter.LOGICAL.ANY([]).[1](child=rel#2324:Subset#3.LOGICAL.ANY([]).[],convention=LOGICAL,DrillDistributionTraitDef=ANY([]),sort=[1])] ] < IndexOutOfBoundsException:[ index (1) must be less than size (1) ]"
> ]
> Error: exception while executing query (state=,code=0)
> postgres:
> foodmart=# select cast(c_groupby as varchar(5)) from data order by c_groupby;
>  c_groupby
> -----------
>  a
>  a
>  a
>  a
>  a
>  ab
>  ab
>  ab
>  ab
>  ab
>  ab
>  abc
>  abc
>  abc
>  abc
>  abc
>  abc
> (23 rows)



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