You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Abhishek Girish (JIRA)" <ji...@apache.org> on 2015/04/25 00:36:39 UTC

[jira] [Commented] (DRILL-2177) Select * with Order by 1 fails on Yelp JSON dataset

    [ https://issues.apache.org/jira/browse/DRILL-2177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14511921#comment-14511921 ] 

Abhishek Girish commented on DRILL-2177:
----------------------------------------

Verified on Git.Commit.ID a0a1930 (April 21 build)

{code:sql}
> select * from dfs.`/data/json/yelp/yelp_academic_dataset_review.json` order by 1 limit 1;
+---------------------------+-------------+------------+------------+------------+------------+------------+------------+------------+
| E_X_P_R_H_A_S_H_F_I_E_L_D | business_id |    date    | review_id  |   stars    |    text    |    type    |  user_id   |   votes    |
+---------------------------+-------------+------------+------------+------------+------------+------------+------------+------------+
| 0                         | vcNAWiLM4dR7D2nwwJ7nCA | 2007-05-17 | 15SdjuK7DmYqUAj6rjGowg | 5          | dr. goldberg offers everything i look for in a general practitioner.  he's nice and easy to talk to without being patronizing; he's always on time in seeing his patients; he's affiliated with a top-notch hospital (nyu) which my parents have explained to me is very important in case something happens and you need surgery; and you can get referrals to see specialists without having to see him first.  really, what more do you need?  i'm sitting here trying to think of any complaints i have about him, but i'm really drawing a blank. | review     | Xqd0DzHaiyRqVH3WRG7hzg | {"funny":"0","useful":"2","cool":"1"} |
+---------------------------+-------------+------------+------------+------------+------------+------------+------------+------------+
1 row selected (11.517 seconds)
{code}

The issue is now resolved.

> Select * with Order by 1 fails on Yelp JSON dataset 
> ----------------------------------------------------
>
>                 Key: DRILL-2177
>                 URL: https://issues.apache.org/jira/browse/DRILL-2177
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Client - CLI
>    Affects Versions: 0.8.0
>            Reporter: Abhishek Girish
>            Assignee: Parth Chandra
>             Fix For: 0.9.0
>
>         Attachments: drillbit_order_by.log, explain_plan.txt
>
>
> A simple select * with order by fails on the Yelp academic dataset. 
> > select * from dfs.`/data/json/yelp/yelp_academic_dataset_review.json` order by 1 limit 1;
> +-------------+------------+------------+------------+------------+------------+------------+------------+
> | business_id |    date    | review_id  |   stars    |    text    |    type    |  user_id   |   votes    |
> +-------------+------------+------------+------------+------------+------------+------------+------------+
> Query failed: RemoteRpcException: Failure while running fragment., Cleanup before finished. 0 out of 1 streams have finished. [ 54820fd7-a57c-4871-8b89-676c5a229959 on abhi8.qa.lab:31010 ]
> [ 54820fd7-a57c-4871-8b89-676c5a229959 on abhi8.qa.lab:31010 ]
> java.lang.RuntimeException: java.sql.SQLException: Failure while executing query.
> 	at sqlline.SqlLine$IncrementalRows.hasNext(SqlLine.java:2514)
> 	...
> 	at sqlline.SqlLine.main(SqlLine.java:460)
> > select * from dfs.`/data/json/yelp/yelp_academic_dataset_business.json` order by 1 limit 1;
> +------------+-------------+------------+------------+--------------+------------+------------+------------+------------+---------------+------------+--------------+------------+------------+------------+
> | attributes | business_id | categories |    city    | full_address |   hours    |  latitude  | longitude  |    name    | neighborhoods |    open    | review_count |   stars    |   state    |    type    |
> +------------+-------------+------------+------------+--------------+------------+------------+------------+------------+---------------+------------+--------------+------------+------------+------------+
> Query failed: RemoteRpcException: Failure while running fragment., Attempted to close accountor with 92 buffer(s) still allocatedfor QueryId: 2b2aea0b-0a51-55fb-ecd9-10ec697787f7, MajorFragmentId: 0, MinorFragmentId: 0.
> 	Total 92 allocation(s) of byte size(s): 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, at stack location:
> 		org.apache.drill.exec.memory.TopLevelAllocator$ChildAllocator.buffer(TopLevelAllocator.java:217)
> org.apache.drill.exec.vector.NullableBitVector.allocateNew(NullableBitVector.java:162)
> 		org.apache.drill.exec.vector.complex.MapVector$MapTransferPair.<init>(MapVector.java:160)
> 	org.apache.drill.exec.physical.impl.TopN.TopNBatch.innerNext(TopNBatch.java:221)...
> ...
> java.lang.RuntimeException: java.sql.SQLException: Failure while executing query.
> Log attached. 



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