hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zheng Shao (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HIVE-421) union followed by multi-table insert does not work properly
Date Thu, 16 Apr 2009 00:26:15 GMT

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

Zheng Shao commented on HIVE-421:
---------------------------------

Can you add some more comments?

What is the difference between these two initUnionPlan?
{code}
+    // If the plan for this reducer does not exist, initialize the plan
+    if (opMapTask == null) {
+      if (plan.getReducer() == null)
+        GenMapRedUtils.initUnionPlan(op, ctx);
+      else
+        GenMapRedUtils.splitPlan(op, ctx);
+    }
+    else if (plan.getReducer() == reducer)
+      GenMapRedUtils.initUnionPlan(op, ctx);
+    else {
+      GenMapRedUtils.initUnionPlan(ctx, currTask);
+      GenMapRedUtils.joinPlan(op, currTask, opMapTask, ctx);
+    }
+
{code}

javadoc:
{code}
+  public static void initUnionPlan(GenMRProcContext opProcCtx, Task<? extends Serializable>
currTask) {
{code}


> union followed by multi-table insert does not work properly
> -----------------------------------------------------------
>
>                 Key: HIVE-421
>                 URL: https://issues.apache.org/jira/browse/HIVE-421
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Namit Jain
>            Assignee: Namit Jain
>            Priority: Critical
>         Attachments: hive.421.1.patch
>
>
> Like jira 413, multi-table inserts has some problems with unions.

-- 
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