[
https://issues.apache.org/jira/browse/TAJO-934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14058508#comment-14058508
]
Hudson commented on TAJO-934:
-----------------------------
FAILURE: Integrated in Tajo-master-build #288 (See
[https://builds.apache.org/job/Tajo-master-build/288/])
TAJO-934: Multiple DISTINCT returns null grouping key value. (Hyoungjun Kim via
hyunsik) (hyunsik: rev 95292d29d96963c769ce2fd17a3350375145683e)
* CHANGES
* tajo-storage/src/main/java/org/apache/tajo/storage/v2/RCFile.java
* tajo-core/src/main/java/org/apache/tajo/engine/planner/LogicalPlanner.java
* tajo-core/src/test/java/org/apache/tajo/engine/query/TestGroupByQuery.java
*
tajo-core/src/main/java/org/apache/tajo/engine/planner/physical/DistinctGroupbyHashAggregationExec.java
> Multiple DISTINCT returns null grouping key value.
> --------------------------------------------------
>
> Key: TAJO-934
> URL: https://issues.apache.org/jira/browse/TAJO-934
> Project: Tajo
> Issue Type: Bug
> Reporter: Hyoungjun Kim
> Assignee: Hyoungjun Kim
> Priority: Minor
> Fix For: 0.9.0
>
>
> {noformat}
> default> select count * from table1;
> col1, col2, col3
> -------------------------
> a, b-1, null
> a, b-2, null
> a, b-2, null
> a, b-3, null
> a, b-3, null
> a, b-3, null
> default> select col1,
> count(distinct col2) as cnt1,
> count(distinct case when col3 is not null then col2 else null end) as cnt2
> from table1
> group by col1;
> col1,cnt1,cnt2
> -------------------------------
> a, 2, 1
> null, 1, 1
> {noformat}
> This query should return the below result.
> {noformat}
> col1,cnt1,cnt2
> -------------------------------
> a, 3, 1
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)