drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Nadeau (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-2926) Group by and agg functions result in IllegalStateException when fileds are missing in some files
Date Tue, 05 May 2015 14:30:02 GMT

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

Jacques Nadeau updated DRILL-2926:
----------------------------------
    Fix Version/s:     (was: 1.0.0)
                   1.2.0
         Priority: Major  (was: Critical)

> 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: Steven Phillips
>             Fix For: 1.2.0
>
>         Attachments: error.log
>
>
> 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)

Mime
View raw message