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

Rahul Challapalli updated DRILL-2268:
-------------------------------------
    Description: 
git.commit.id.abbrev=6676f2d

Data Set :
{code}
{
  "id" : 1,
  "events" : [
        { "evnt_id":"e1", "campaign_id":"c1", "event_name":"e1_name", 
"event_time":1000000, "type" : "cmpgn9"},
        { "evnt_id":"e2", "campaign_id":"c1", "event_name":"e2_name", 
"event_time":2000000, "type" : "cmpgn4"}
  ],
  "lst_lst" : [[1,2],[3,4]]
}
{
  "id" : 2,
  "events" : [
        { "evnt_id":"e1", "campaign_id":"c1", "event_name":"e1_name", 
"event_time":1000000, "type" : "cmpgn9"},
        { "evnt_id":"e2", "campaign_id":"c1", "event_name":"e2_name", 
"event_time":2000000, "type" : "cmpgn4"}
  ],
  "lst_lst" : [[1,2],[3,4]]
}
{code}

The below query which tries to flatten a repeated list fails :
{code}
select flatten(t1.lst_lst) from `temp.json` t1 inner join `temp.json` t2 on 
t1.uid=t2.uid;
Query failed: RemoteRpcException: Failure while running fragment., index: -4, 
length: 4 (expected: range(0, 16384)) [ e32cd0c6-a84a-4bbb-9812-bc0f7de17a68 on 
qa-node190.qa.lab:31010 ]
[ e32cd0c6-a84a-4bbb-9812-bc0f7de17a68 on qa-node190.qa.lab:31010 ]
{code}

The below query which tries to flatten a repeated map also fails
{code}
select flatten(t1.events) from `temp.json` t1 inner join `temp.json` t2 on 
t1.uid=t2.uid;
Query failed: RemoteRpcException: Failure while running fragment., index: -4, 
length: 4 (expected: range(0, 16384)) [ c9adffb0-44c6-4ecb-9093-1f3fd13837f9 on 
qa-node190.qa.lab:31010 ]
[ c9adffb0-44c6-4ecb-9093-1f3fd13837f9 on qa-node190.qa.lab:31010 ]
{code}

The below 2 queries return empty results. I can open a different JIRA if the 
below 2 failures are because of a completely different reason
{code}
select flatten(t1.lst_lst[0]) from `temp.json` t1 inner join `temp.json` t2 on 
t1.uid=t2.uid;
+------------+
|   EXPR$0   |
+------------+
+------------+
{code}

{code}
select flatten(t1.lst) from `temp.json` t1 inner join `temp.json` t2 on 
t1.uid=t2.uid;
+------------+
|   EXPR$0   |
+------------+
+------------+
{code}

Let me know if you have any questions

  was:
git.commit.id.abbrev=6676f2d

Data Set :
{code}
{
  "uid":1,
  "lst_lst" : [[1,2],[3,4]]
} 
{
  "uid":2,
  "lst_lst" : [[1,2],[3,4]]
}
{code}

The below query fails :
{code}
select flatten(t1.lst_lst) from `temp.json` t1 inner join `temp.json` t2 on 
t1.uid=t2.uid;
Query failed: RemoteRpcException: Failure while running fragment., index: -4, 
length: 4 (expected: range(0, 16384)) [ e32cd0c6-a84a-4bbb-9812-bc0f7de17a68 on 
qa-node190.qa.lab:31010 ]
[ e32cd0c6-a84a-4bbb-9812-bc0f7de17a68 on qa-node190.qa.lab:31010 ]
{code}

Let me know if you have any questions


> Applying flatten after a join  fails with IOBE
> ----------------------------------------------
>
>                 Key: DRILL-2268
>                 URL: https://issues.apache.org/jira/browse/DRILL-2268
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>            Reporter: Rahul Challapalli
>            Assignee: Jason Altekruse
>            Priority: Critical
>
> git.commit.id.abbrev=6676f2d
> Data Set :
> {code}
> {
>   "id" : 1,
>   "events" : [
>         { "evnt_id":"e1", "campaign_id":"c1", "event_name":"e1_name", 
> "event_time":1000000, "type" : "cmpgn9"},
>         { "evnt_id":"e2", "campaign_id":"c1", "event_name":"e2_name", 
> "event_time":2000000, "type" : "cmpgn4"}
>   ],
>   "lst_lst" : [[1,2],[3,4]]
> }
> {
>   "id" : 2,
>   "events" : [
>         { "evnt_id":"e1", "campaign_id":"c1", "event_name":"e1_name", 
> "event_time":1000000, "type" : "cmpgn9"},
>         { "evnt_id":"e2", "campaign_id":"c1", "event_name":"e2_name", 
> "event_time":2000000, "type" : "cmpgn4"}
>   ],
>   "lst_lst" : [[1,2],[3,4]]
> }
> {code}
> The below query which tries to flatten a repeated list fails :
> {code}
> select flatten(t1.lst_lst) from `temp.json` t1 inner join `temp.json` t2 on 
> t1.uid=t2.uid;
> Query failed: RemoteRpcException: Failure while running fragment., index: -4, 
> length: 4 (expected: range(0, 16384)) [ e32cd0c6-a84a-4bbb-9812-bc0f7de17a68 
> on qa-node190.qa.lab:31010 ]
> [ e32cd0c6-a84a-4bbb-9812-bc0f7de17a68 on qa-node190.qa.lab:31010 ]
> {code}
> The below query which tries to flatten a repeated map also fails
> {code}
> select flatten(t1.events) from `temp.json` t1 inner join `temp.json` t2 on 
> t1.uid=t2.uid;
> Query failed: RemoteRpcException: Failure while running fragment., index: -4, 
> length: 4 (expected: range(0, 16384)) [ c9adffb0-44c6-4ecb-9093-1f3fd13837f9 
> on qa-node190.qa.lab:31010 ]
> [ c9adffb0-44c6-4ecb-9093-1f3fd13837f9 on qa-node190.qa.lab:31010 ]
> {code}
> The below 2 queries return empty results. I can open a different JIRA if the 
> below 2 failures are because of a completely different reason
> {code}
> select flatten(t1.lst_lst[0]) from `temp.json` t1 inner join `temp.json` t2 
> on t1.uid=t2.uid;
> +------------+
> |   EXPR$0   |
> +------------+
> +------------+
> {code}
> {code}
> select flatten(t1.lst) from `temp.json` t1 inner join `temp.json` t2 on 
> t1.uid=t2.uid;
> +------------+
> |   EXPR$0   |
> +------------+
> +------------+
> {code}
> Let me know if you have any questions



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

Reply via email to