You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Neeraja (JIRA)" <ji...@apache.org> on 2014/10/28 19:27:35 UTC

[jira] [Created] (DRILL-1594) SQL exception on JSON files with specific number of rows

Neeraja created DRILL-1594:
------------------------------

             Summary: SQL exception on JSON files with specific number of rows
                 Key: DRILL-1594
                 URL: https://issues.apache.org/jira/browse/DRILL-1594
             Project: Apache Drill
          Issue Type: Bug
            Reporter: Neeraja


I can reproduce this with many queries, but narrowing down, it may actually have to do with the number of rows that are being retrieved.
I tried a query as follows (i.e limit 10034). It returns 10033 rows and then fails with an exception. A modified limit 10033 does succeed.

 select * from dfs.`/users/nrentachintala/Downloads/yelp_dataset_challenge_academic_dataset/yelp_academic_dataset_business.json` b  limit 10034;
-------------------
java.lang.RuntimeException: java.sql.SQLException: Failure while trying to get next result batch.
	at sqlline.SqlLine$IncrementalRows.hasNext(SqlLine.java:2514)
	at sqlline.SqlLine$TableOutputFormat.print(SqlLine.java:2148)
	at sqlline.SqlLine.print(SqlLine.java:1809)
	at sqlline.SqlLine$Commands.execute(SqlLine.java:3766)
	at sqlline.SqlLine$Commands.sql(SqlLine.java:3663)
	at sqlline.SqlLine.dispatch(SqlLine.java:889)
	at sqlline.SqlLine.begin(SqlLine.java:763)
	at sqlline.SqlLine.start(SqlLine.java:498)
	at sqlline.SqlLine.main(SqlLine.java:460)

I enabled text mode using alter system set `store.json.all_text_mode`=true;
The same error occurs with this configuration as well.

Here is another example where it fails.
select * from dfs.`/users/nrentachintala/Downloads/yelp_dataset_challenge_academic_dataset/yelp_academic_dataset_business.json` b where review_count > 1000;



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