hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Namit Jain (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HIVE-413) multi-table insert
Date Wed, 15 Apr 2009 15:11:15 GMT

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

Namit Jain commented on HIVE-413:
---------------------------------

The above approach will not work, as in case of sub-queries there are no topOps to start with.
A simpler solution is to pass the reduce sink operator and use that to perform setKeyAndValueDesc()

> multi-table insert
> ------------------
>
>                 Key: HIVE-413
>                 URL: https://issues.apache.org/jira/browse/HIVE-413
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Namit Jain
>            Assignee: Namit Jain
>            Priority: Critical
>         Attachments: hive.413.1.patch
>
>
> some problem in multi-table insert if both of them contain grouping keys which are different.
> have not marked it a blocker, since a workaround exists (issue both inserts separately)
- but this if the release is not yet done, we should fix this also.
> FROM SRC
> INSERT OVERWRITE TABLE DEST1 SELECT SRC.key, src.value, COUNT(DISTINCT SUBSTR(SRC.value,5))
GROUP BY SRC.key\
> , src.value
> INSERT OVERWRITE TABLE DEST2 SELECT SRC.key, COUNT(DISTINCT SUBSTR(SRC.value,5)) GROUP
BY SRC.key;

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


Mime
View raw message