drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Hsuan-Yi Chu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-2181) Throw proper error message when flatten is used within an 'order by' or 'group by'
Date Tue, 14 Apr 2015 18:08:12 GMT

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

Sean Hsuan-Yi Chu commented on DRILL-2181:
------------------------------------------

https://reviews.apache.org/r/33180/

> Throw proper error message when flatten is used within an 'order by' or 'group by'
> ----------------------------------------------------------------------------------
>
>                 Key: DRILL-2181
>                 URL: https://issues.apache.org/jira/browse/DRILL-2181
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Query Planning & Optimization
>            Reporter: Rahul Challapalli
>            Assignee: Sean Hsuan-Yi Chu
>             Fix For: 0.9.0
>
>         Attachments: DRILL-2181.1.patch
>
>
> git.commit.id.abbrev=c54bd6a
> Flatten can be used within a group by or order by statement when the output of flatten
is a scalar. However drill currently does not support using flatten with the above operators
when its output is not a scalar. In such cases we should show a more appropriate error, possibly
indicating how to correct the query as well
> Currently this is what we get. This is obscure and does not pinpoint the issue
> {code}
> select * from `data1.json` order by flatten(events);
> Query failed: RemoteRpcException: Failure while running fragment., org.apache.drill.exec.vector.NullableIntVector
cannot be cast to org.apache.drill.exec.vector.RepeatedVector [ c3d85d23-7ea0-43ea-bbd3-ac18a0aa2de3
on qa-node191.qa.lab:31010 ]
> [ c3d85d23-7ea0-43ea-bbd3-ac18a0aa2de3 on qa-node191.qa.lab:31010 ]
> Error: exception while executing query: Failure while executing query. (state=,code=0)
> {code}



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

Mime
View raw message