drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Altekruse (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DRILL-2228) Projecting '*' returns all nulls when we have flatten in a filter and order by
Date Tue, 05 May 2015 00:38:06 GMT

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

Jason Altekruse resolved DRILL-2228.
------------------------------------
    Resolution: Later

Flatten has been disabled in the order by clause by DRILL-2181. We will look at how best to
re-enable this past 1.0

> Projecting '*' returns all nulls when we have flatten in a filter and order by
> ------------------------------------------------------------------------------
>
>                 Key: DRILL-2228
>                 URL: https://issues.apache.org/jira/browse/DRILL-2228
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Relational Operators
>            Reporter: Rahul Challapalli
>            Assignee: Jason Altekruse
>            Priority: Critical
>             Fix For: 1.0.0
>
>
> git.commit.id.abbrev=3d863b5
> The below query returns all nulls currently :
> {code}
> 0: jdbc:drill:schema=dfs_eea> select * from `data.json` where 2 in (select flatten(lst_lst[1])
from `data.json`) order by flatten(lst_lst[1]);
> +------------+
> |     *      |
> +------------+
> | null       |
> | null       |
> | null       |
> | null       |
> | null       |
> | null       |
> | null       |
> | null       |
> | null       |
> | null       |
> +------------+
> {code}
> There seems to be another issue here since the no of records returned also does not look
right. I will raise a separate JIRA for that.
> The issue goes away, if we do an order by without the flatten. Below query works
> {code}
> select * from `data.json` where 2 in (select flatten(lst_lst[1]) from `data.json`) order
by uid;
> {code}
> Attached the data files



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

Mime
View raw message