drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Westin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-2174) Flatten should work from within a filter
Date Mon, 23 Feb 2015 18:03:13 GMT

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

Chris Westin updated DRILL-2174:
--------------------------------
    Fix Version/s: Future

> Flatten should work from within a filter
> ----------------------------------------
>
>                 Key: DRILL-2174
>                 URL: https://issues.apache.org/jira/browse/DRILL-2174
>             Project: Apache Drill
>          Issue Type: Improvement
>          Components: Execution - Relational Operators
>            Reporter: Rahul Challapalli
>            Assignee: Chris Westin
>             Fix For: Future
>
>
> git.commit.id.abbrev=3e33880
> We should be able to use flatten from within a filter when the output of flatten is scalars.
> Currently we can use flatten with order by and group by operators (when the output of
flatten is scalars).
> Data Set :
> {code}
> {
>   "id" : 1,
>   "lst" : [1,2,3]
> }
> {code}
> The below queries work :
> {code}
> select d.id from `temp.json` d order by flatten(d.lst);
> select MAX(d.id) from `temp.json` d group by flatten(d.lst);
> {code}
> The below query fails :
> {code}
> select d.uid from `temp.json` d where flatten(d.lst) > 5;
> {code}



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

Mime
View raw message