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/13 23:36:13 UTC

[jira] [Commented] (DRILL-2103) Queries on views containing average on columns containing null values fail

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

Abhishek Girish commented on DRILL-2103:
----------------------------------------

Verified that the issue is resolved. Git.Commit.ID: d7e37f4 (Apr 11, 2015)

{code}
> select avg(ss_item_sk) from store_sales;
+------------+
|   EXPR$0   |
+------------+
| 8999.191287749913 |
+------------+
1 row selected (2.55 seconds)
0: jdbc:drill:zk=10.10.103.32:5181> select avg(ss_sales_price) from store_sales;
+------------+
|   EXPR$0   |
+------------+
| 37.89235310305661 |
+------------+
1 row selected (3.901 seconds)
{code}

> Queries on views containing average on columns containing null values fail
> --------------------------------------------------------------------------
>
>                 Key: DRILL-2103
>                 URL: https://issues.apache.org/jira/browse/DRILL-2103
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Query Planning & Optimization
>            Reporter: Abhishek Girish
>            Assignee: Abhishek Girish
>            Priority: Critical
>             Fix For: 0.9.0
>
>         Attachments: Create_views_store_sales.txt, agg_nulls.log
>
>
> > describe store_sales;
> ...
> | ss_item_sk  | INTEGER    | NO          |
> ...
> | ss_sales_price | DOUBLE     | NO          |
> ...
> > select count(*) from store_sales where ss_sales_price is NULL;
> 129666     
> > select count(*) from store_sales where ss_sales_price is NOT NULL;
> 2750738    
> > select avg(ss_item_sk) from store_sales;
> Query failed: Query failed: Unexpected exception during fragment initialization: Internal error: Error while applying rule DrillReduceAggregatesRule, args [rel#852769:AggregateRel.NONE.ANY([]).[](child=rel#852768:Subset#3.NONE.ANY([]).[],group={},EXPR$0=AVG($0))]
> Error: exception while executing query: Failure while executing query. (state=,code=0)
> > select avg(ss_sales_price) from store_sales;
> Query failed: Query failed: Unexpected exception during fragment initialization: Internal error: Error while applying rule DrillReduceAggregatesRule, args [rel#851712:AggregateRel.NONE.ANY([]).[](child=rel#851711:Subset#3.NONE.ANY([]).[],group={},EXPR$0=AVG($0))]
> Error: exception while executing query: Failure while executing query. (state=,code=0)
> Log attached. 



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