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

Zheng Shao commented on HIVE-384:
---------------------------------

It seems that the new test results print out the GroupByOperator after 
ReduceOutputOperator in the "Map Operator Tree", while it is already printed 
out in the "Reduce Operator Tree:" section.

{code}
+              Reduce Output Operator
+                key expressions:
+                      expr: 0
+                      type: string
+                sort order: +
+                Map-reduce partition columns:
+                      expr: 0
+                      type: string
+                tag: -1
+                value expressions:
+                      expr: 1
+                      type: bigint
+                Group By Operator
+                  aggregations:
+                        expr: count(VALUE.0)
+                  keys:
+                        expr: KEY.0
+                        type: string
+                  mode: mergepartial
+                  Select Operator
+                    expressions:
+                          expr: 0
+                          type: string
+                          expr: 1
+                          type: bigint
+                    File Output Operator
+                      compressed: false
+                      GlobalTableId: 0
+                      table:
+                          input format: 
org.apache.hadoop.mapred.TextInputFormat
+                          output format: 
org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat
+        /data/users/njain/hive1/hive/build/ql/tmp/58586108/201879798.10003 
{code}


> problem in union if the first subquery is a map-only job
> --------------------------------------------------------
>
>                 Key: HIVE-384
>                 URL: https://issues.apache.org/jira/browse/HIVE-384
>             Project: Hadoop Hive
>          Issue Type: Bug
>            Reporter: Namit Jain
>            Assignee: Namit Jain
>            Priority: Blocker
>         Attachments: hive.384.1.patch, hive.384.2.patch, hive.384.3.patch, 
> hive.384.4.patch
>
>
> Union needs special handling.
> explain 
>   select unionsrc.key, count(1) FROM (select s2.key as key, s2.value as value 
> from src1 s2
>                                         UNION  ALL  
>                                       select 'tst1' as key, cast(count(1) as 
> string) as value from src s1) 
>   unionsrc group by unionsrc.key;
> results in a null pointer exception

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

Reply via email to