You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Rahul Challapalli (JIRA)" <ji...@apache.org> on 2015/04/30 21:30:05 UTC
[jira] [Created] (DRILL-2926) Group by and agg functions result in
IllegalStateException when fileds are missing in some files
Rahul Challapalli created DRILL-2926:
----------------------------------------
Summary: Group by and agg functions result in IllegalStateException when fileds are missing in some files
Key: DRILL-2926
URL: https://issues.apache.org/jira/browse/DRILL-2926
Project: Apache Drill
Issue Type: Bug
Components: Execution - Flow, Storage - JSON
Reporter: Rahul Challapalli
Assignee: Chris Westin
Priority: Critical
Fix For: 1.0.0
git.commit.id.abbrev=5fbd274
Data folder contains the below 2 files :
{code}
a.json -- {"col1" : 1, "col2" : 1}
b.json -- {"col2" : 2}
{code}
Query 1:
{code}
select count(*) from data group by col1;
+------------+
| EXPR$0 |
+------------+
Query failed: SYSTEM ERROR: Failure while reading vector. Expected vector class of org.apache.drill.exec.vector.NullableIntVector but was holding vector class org.apache.drill.exec.vector.NullableBigIntVector.
Fragment 0:0
[7f09c032-8e50-407a-8561-0bb6cc218015 on qa-node190.qa.lab:31010]
java.lang.RuntimeException: java.sql.SQLException: Failure while executing query.
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)
{code}
Query 2 :
{code}
0: jdbc:drill:schema=dfs_eea> select max(col2) from temp group by col1;
+------------+
| EXPR$0 |
+------------+
Query failed: SYSTEM ERROR: java.lang.UnsupportedOperationException: Sort doesn't currently support sorts with changing schemas.
Fragment 0:0
[b8a632b7-139c-49c3-9739-4bc4cd2166b4 on qa-node190.qa.lab:31010]
java.lang.RuntimeException: java.sql.SQLException: Failure while executing query.
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)
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)