You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Vikram Dixit K (JIRA)" <ji...@apache.org> on 2013/08/21 04:40:53 UTC

[jira] [Commented] (HIVE-5129) Multiple table insert fails on count(distinct)

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

Vikram Dixit K commented on HIVE-5129:
--------------------------------------

[~navis] This issue is related to HIVE-4692. I have attached a patch which retains the same behavior as was before that patch without affecting the test added as part of it. However, I am not sure what else is affected by this down stream. I have started to run the unit tests to make sure I haven't broken other things. It would be great if you could take a look and provide feedback on this. Please let me know if you have a better approach in mind.

Thanks!
                
> Multiple table insert fails on count(distinct)
> ----------------------------------------------
>
>                 Key: HIVE-5129
>                 URL: https://issues.apache.org/jira/browse/HIVE-5129
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.11.0
>            Reporter: Vikram Dixit K
>            Assignee: Vikram Dixit K
>         Attachments: aggrTestMultiInsertData1.txt, aggrTestMultiInsertData.txt, aggrTestMultiInsert.q, HIVE-5129.1.patch.txt
>
>
> Hive fails with a class cast exception on queries of the form:
> {noformat}
> from studenttab10k
> insert overwrite table multi_insert_2_1
> select name, avg(age) as avgage
> group by name
> insert overwrite table multi_insert_2_2
> select name, age, sum(gpa) as sumgpa
> group by name, age
> insert overwrite table multi_insert_2_3
> select name, count(distinct age) as distage
> group by name;
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira