You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Prasad Chakka (JIRA)" <ji...@apache.org> on 2009/01/12 20:24:03 UTC

[jira] Commented: (HIVE-222) Group by on a combination of disitinct and non distinct aggregates can return serialization errors with map side aggregations.

    [ https://issues.apache.org/jira/browse/HIVE-222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663056#action_12663056 ] 

Prasad Chakka commented on HIVE-222:
------------------------------------

looks good +1

though it doesn't guarantee that HashMap will return objects in the same order in both the functions. 

> Group by on a combination of disitinct and non distinct aggregates can return serialization errors with map side aggregations.
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-222
>                 URL: https://issues.apache.org/jira/browse/HIVE-222
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.2.0
>            Reporter: Ashish Thusoo
>            Assignee: Ashish Thusoo
>            Priority: Blocker
>             Fix For: 0.2.0
>
>         Attachments: patch-222.txt
>
>
> For queries of the form (groupby2_map.q in the source)
> SELECT x, count(DISTINCT y), SUM(y) FROM t GROUP BY x
> when map side aggregation is on 
> hive.map.aggr=true (This is off by default)
> The following exception can occur:
>     [junit] Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Double
>     [junit]     at org.apache.hadoop.hive.serde2.dynamic_type.DynamicSerDeTypeDouble.serialize(DynamicSerDeTypeDouble.java:60)
>     [junit]     at org.apache.hadoop.hive.serde2.dynamic_type.DynamicSerDeFieldList.serialize(DynamicSerDeFieldList.java:235)
>     [junit]     at org.apache.hadoop.hive.serde2.dynamic_type.DynamicSerDeStructBase.serialize(DynamicSerDeStructBase.java:81)
>     [junit]     at org.apache.hadoop.hive.serde2.dynamic_type.DynamicSerDe.serialize(DynamicSerDe.java:174)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.