You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Rahul Challapalli (JIRA)" <ji...@apache.org> on 2015/04/21 23:40:02 UTC

[jira] [Closed] (DRILL-2106) Flatten together with order by on a list within a list is causing an error

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

Rahul Challapalli closed DRILL-2106.
------------------------------------

Verified the fix and added the below tests :

Functional/Passing/flatten_operators/2rows/orderby18_DRILL-2106.q
Functional/Passing/flatten_operators/2rows/orderby20_DRILL-2106.q

> Flatten together with order by on a list within a list is causing an error
> --------------------------------------------------------------------------
>
>                 Key: DRILL-2106
>                 URL: https://issues.apache.org/jira/browse/DRILL-2106
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Data Types, Execution - Relational Operators
>            Reporter: Rahul Challapalli
>            Assignee: Mehant Baid
>            Priority: Critical
>             Fix For: 0.9.0
>
>         Attachments: DRILL-2106.patch, error.log
>
>
> git.commit.id.abbrev=3e33880
> Data Set :
> {code}
> {
>   "uid" : 1,
>   "lst_lst" : [[1,2,3,4,5],[2,3,4,5,6]]
> }
> {code}
> The below query fails
> {code}
> select flatten(lst) from (select uid, flatten(d.lst_lst) lst from `temp4.json` d) s1 order by s1.lst[3];
> {code}
> When we remove the top level flatten the below query works
> {code}
> select uid from (select uid, flatten(d.lst_lst) lst from `temp4.json` d) s1 order by s1.lst[3];
> {code}
> Attached the error log



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