drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Challapalli (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-2174) Flatten should work from within a filter
Date Fri, 06 Feb 2015 01:04:24 GMT
Rahul Challapalli created DRILL-2174:

             Summary: 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


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 :
  "id" : 1,
  "lst" : [1,2,3]

The below queries work :
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);

The below query fails :
select d.uid from `temp.json` d where flatten(d.lst) > 5;

This message was sent by Atlassian JIRA

View raw message