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

Hudson commented on TAJO-866:
-----------------------------

FAILURE: Integrated in Tajo-master-build #262 (See 
[https://builds.apache.org/job/Tajo-master-build/262/])
TAJO-866: COUNT DISTINCT with other aggregation function throws 
ClassCastException. (Hyoungjun Kim via hyunsik) (hyunsik: rev 
26265c0609324b52f8e22bf803fddfa1413cf3a4)
* tajo-core/src/main/java/org/apache/tajo/engine/function/builtin/AvgLong.java
* tajo-core/src/test/java/org/apache/tajo/engine/query/TestJoinQuery.java
* 
tajo-core/src/test/resources/results/TestJoinQuery/testLeftOuterJoinWithEmptyTable5.result
* tajo-core/src/main/java/org/apache/tajo/engine/function/builtin/AvgDouble.java
* tajo-core/src/test/java/org/apache/tajo/engine/query/TestGroupByQuery.java
* CHANGES
* 
tajo-core/src/test/resources/queries/TestJoinQuery/testLeftOuterJoinWithEmptyTable5.sql


> COUNT DISTINCT with other aggregation function throws ClassCastException.
> -------------------------------------------------------------------------
>
>                 Key: TAJO-866
>                 URL: https://issues.apache.org/jira/browse/TAJO-866
>             Project: Tajo
>          Issue Type: Bug
>            Reporter: Hyoungjun Kim
>            Assignee: Hyoungjun Kim
>            Priority: Minor
>             Fix For: 0.9.0
>
>
> I tested with the following data and query. 
> {noformat}
> default> select * from table1;
> id,code,qty
> -------------------------------
> 1,a,3
> 1,a,4
> 1,b,5
> 2,a,1
> 2,c,2
> 2,d,3
> default> select id, count(distinct code), avg(qty) from table101 group by id;
> 2014-06-05 21:29:56,960 ERROR: org.apache.tajo.worker.Task (run(390)) - 
> org.apache.tajo.datum.NullDatum cannot be cast to 
> org.apache.tajo.datum.ProtobufDatum
> java.lang.ClassCastException: org.apache.tajo.datum.NullDatum cannot be cast 
> to org.apache.tajo.datum.ProtobufDatum
>       at 
> org.apache.tajo.engine.function.builtin.AvgLong.merge(AvgLong.java:66)
>       at 
> org.apache.tajo.engine.eval.AggregationFunctionCallEval.merge(AggregationFunctionCallEval.java:59)
>       at 
> org.apache.tajo.engine.planner.physical.SortAggregateExec.next(SortAggregateExec.java:77)
>       at 
> org.apache.tajo.engine.planner.physical.DistinctGroupbySortAggregationExec.next(DistinctGroupbySortAggregationExec.java:88)
>       at 
> org.apache.tajo.engine.planner.physical.StoreTableExec.next(StoreTableExec.java:77)
>       at org.apache.tajo.worker.Task.run(Task.java:382)
>       at org.apache.tajo.worker.TaskRunner$1.run(TaskRunner.java:406)
>       at java.lang.Thread.run(Thread.java:744)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to