http://git-wip-us.apache.org/repos/asf/hive/blob/bd371246/ql/src/test/results/clientpositive/perf/spark/query49.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/spark/query49.q.out 
b/ql/src/test/results/clientpositive/perf/spark/query49.q.out
new file mode 100644
index 0000000..26dfefd
--- /dev/null
+++ b/ql/src/test/results/clientpositive/perf/spark/query49.q.out
@@ -0,0 +1,876 @@
+PREHOOK: query: explain
+select  
+ 'web' as channel
+ ,web.item
+ ,web.return_ratio
+ ,web.return_rank
+ ,web.currency_rank
+ from (
+       select 
+        item
+       ,return_ratio
+       ,currency_ratio
+       ,rank() over (order by return_ratio) as return_rank
+       ,rank() over (order by currency_ratio) as currency_rank
+       from
+       (       select ws.ws_item_sk as item
+               ,(cast(sum(coalesce(wr.wr_return_quantity,0)) as dec(15,4))/
+               cast(sum(coalesce(ws.ws_quantity,0)) as dec(15,4) )) as 
return_ratio
+               ,(cast(sum(coalesce(wr.wr_return_amt,0)) as dec(15,4))/
+               cast(sum(coalesce(ws.ws_net_paid,0)) as dec(15,4) )) as 
currency_ratio
+               from 
+                web_sales ws left outer join web_returns wr 
+                       on (ws.ws_order_number = wr.wr_order_number and 
+                       ws.ws_item_sk = wr.wr_item_sk)
+                 ,date_dim
+               where 
+                       wr.wr_return_amt > 10000 
+                       and ws.ws_net_profit > 1
+                         and ws.ws_net_paid > 0
+                         and ws.ws_quantity > 0
+                         and ws_sold_date_sk = d_date_sk
+                         and d_year = 2000
+                         and d_moy = 12
+               group by ws.ws_item_sk
+       ) in_web
+ ) web
+ where 
+ (
+ web.return_rank <= 10
+ or
+ web.currency_rank <= 10
+ )
+ union
+ select 
+ 'catalog' as channel
+ ,catalog.item
+ ,catalog.return_ratio
+ ,catalog.return_rank
+ ,catalog.currency_rank
+ from (
+       select 
+        item
+       ,return_ratio
+       ,currency_ratio
+       ,rank() over (order by return_ratio) as return_rank
+       ,rank() over (order by currency_ratio) as currency_rank
+       from
+       (       select 
+               cs.cs_item_sk as item
+               ,(cast(sum(coalesce(cr.cr_return_quantity,0)) as dec(15,4))/
+               cast(sum(coalesce(cs.cs_quantity,0)) as dec(15,4) )) as 
return_ratio
+               ,(cast(sum(coalesce(cr.cr_return_amount,0)) as dec(15,4))/
+               cast(sum(coalesce(cs.cs_net_paid,0)) as dec(15,4) )) as 
currency_ratio
+               from 
+               catalog_sales cs left outer join catalog_returns cr
+                       on (cs.cs_order_number = cr.cr_order_number and 
+                       cs.cs_item_sk = cr.cr_item_sk)
+                ,date_dim
+               where 
+                       cr.cr_return_amount > 10000 
+                       and cs.cs_net_profit > 1
+                         and cs.cs_net_paid > 0
+                         and cs.cs_quantity > 0
+                         and cs_sold_date_sk = d_date_sk
+                         and d_year = 2000
+                         and d_moy = 12
+                 group by cs.cs_item_sk
+       ) in_cat
+ ) catalog
+ where 
+ (
+ catalog.return_rank <= 10
+ or
+ catalog.currency_rank <=10
+ )
+ union
+ select 
+ 'store' as channel
+ ,store.item
+ ,store.return_ratio
+ ,store.return_rank
+ ,store.currency_rank
+ from (
+       select 
+        item
+       ,return_ratio
+       ,currency_ratio
+       ,rank() over (order by return_ratio) as return_rank
+       ,rank() over (order by currency_ratio) as currency_rank
+       from
+       (       select sts.ss_item_sk as item
+               ,(cast(sum(coalesce(sr.sr_return_quantity,0)) as 
dec(15,4))/cast(sum(coalesce(sts.ss_quantity,0)) as dec(15,4) )) as return_ratio
+               ,(cast(sum(coalesce(sr.sr_return_amt,0)) as 
dec(15,4))/cast(sum(coalesce(sts.ss_net_paid,0)) as dec(15,4) )) as 
currency_ratio
+               from 
+               store_sales sts left outer join store_returns sr
+                       on (sts.ss_ticket_number = sr.sr_ticket_number and 
sts.ss_item_sk = sr.sr_item_sk)
+                ,date_dim
+               where 
+                       sr.sr_return_amt > 10000 
+                       and sts.ss_net_profit > 1
+                         and sts.ss_net_paid > 0 
+                         and sts.ss_quantity > 0
+                         and ss_sold_date_sk = d_date_sk
+                         and d_year = 2000
+                         and d_moy = 12
+               group by sts.ss_item_sk
+       ) in_store
+ ) store
+ where  (
+ store.return_rank <= 10
+ or 
+ store.currency_rank <= 10
+ )
+ order by 1,4,5
+ limit 100
+PREHOOK: type: QUERY
+POSTHOOK: query: explain
+select  
+ 'web' as channel
+ ,web.item
+ ,web.return_ratio
+ ,web.return_rank
+ ,web.currency_rank
+ from (
+       select 
+        item
+       ,return_ratio
+       ,currency_ratio
+       ,rank() over (order by return_ratio) as return_rank
+       ,rank() over (order by currency_ratio) as currency_rank
+       from
+       (       select ws.ws_item_sk as item
+               ,(cast(sum(coalesce(wr.wr_return_quantity,0)) as dec(15,4))/
+               cast(sum(coalesce(ws.ws_quantity,0)) as dec(15,4) )) as 
return_ratio
+               ,(cast(sum(coalesce(wr.wr_return_amt,0)) as dec(15,4))/
+               cast(sum(coalesce(ws.ws_net_paid,0)) as dec(15,4) )) as 
currency_ratio
+               from 
+                web_sales ws left outer join web_returns wr 
+                       on (ws.ws_order_number = wr.wr_order_number and 
+                       ws.ws_item_sk = wr.wr_item_sk)
+                 ,date_dim
+               where 
+                       wr.wr_return_amt > 10000 
+                       and ws.ws_net_profit > 1
+                         and ws.ws_net_paid > 0
+                         and ws.ws_quantity > 0
+                         and ws_sold_date_sk = d_date_sk
+                         and d_year = 2000
+                         and d_moy = 12
+               group by ws.ws_item_sk
+       ) in_web
+ ) web
+ where 
+ (
+ web.return_rank <= 10
+ or
+ web.currency_rank <= 10
+ )
+ union
+ select 
+ 'catalog' as channel
+ ,catalog.item
+ ,catalog.return_ratio
+ ,catalog.return_rank
+ ,catalog.currency_rank
+ from (
+       select 
+        item
+       ,return_ratio
+       ,currency_ratio
+       ,rank() over (order by return_ratio) as return_rank
+       ,rank() over (order by currency_ratio) as currency_rank
+       from
+       (       select 
+               cs.cs_item_sk as item
+               ,(cast(sum(coalesce(cr.cr_return_quantity,0)) as dec(15,4))/
+               cast(sum(coalesce(cs.cs_quantity,0)) as dec(15,4) )) as 
return_ratio
+               ,(cast(sum(coalesce(cr.cr_return_amount,0)) as dec(15,4))/
+               cast(sum(coalesce(cs.cs_net_paid,0)) as dec(15,4) )) as 
currency_ratio
+               from 
+               catalog_sales cs left outer join catalog_returns cr
+                       on (cs.cs_order_number = cr.cr_order_number and 
+                       cs.cs_item_sk = cr.cr_item_sk)
+                ,date_dim
+               where 
+                       cr.cr_return_amount > 10000 
+                       and cs.cs_net_profit > 1
+                         and cs.cs_net_paid > 0
+                         and cs.cs_quantity > 0
+                         and cs_sold_date_sk = d_date_sk
+                         and d_year = 2000
+                         and d_moy = 12
+                 group by cs.cs_item_sk
+       ) in_cat
+ ) catalog
+ where 
+ (
+ catalog.return_rank <= 10
+ or
+ catalog.currency_rank <=10
+ )
+ union
+ select 
+ 'store' as channel
+ ,store.item
+ ,store.return_ratio
+ ,store.return_rank
+ ,store.currency_rank
+ from (
+       select 
+        item
+       ,return_ratio
+       ,currency_ratio
+       ,rank() over (order by return_ratio) as return_rank
+       ,rank() over (order by currency_ratio) as currency_rank
+       from
+       (       select sts.ss_item_sk as item
+               ,(cast(sum(coalesce(sr.sr_return_quantity,0)) as 
dec(15,4))/cast(sum(coalesce(sts.ss_quantity,0)) as dec(15,4) )) as return_ratio
+               ,(cast(sum(coalesce(sr.sr_return_amt,0)) as 
dec(15,4))/cast(sum(coalesce(sts.ss_net_paid,0)) as dec(15,4) )) as 
currency_ratio
+               from 
+               store_sales sts left outer join store_returns sr
+                       on (sts.ss_ticket_number = sr.sr_ticket_number and 
sts.ss_item_sk = sr.sr_item_sk)
+                ,date_dim
+               where 
+                       sr.sr_return_amt > 10000 
+                       and sts.ss_net_profit > 1
+                         and sts.ss_net_paid > 0 
+                         and sts.ss_quantity > 0
+                         and ss_sold_date_sk = d_date_sk
+                         and d_year = 2000
+                         and d_moy = 12
+               group by sts.ss_item_sk
+       ) in_store
+ ) store
+ where  (
+ store.return_rank <= 10
+ or 
+ store.currency_rank <= 10
+ )
+ order by 1,4,5
+ limit 100
+POSTHOOK: type: QUERY
+STAGE DEPENDENCIES:
+  Stage-1 is a root stage
+  Stage-0 depends on stages: Stage-1
+
+STAGE PLANS:
+  Stage: Stage-1
+    Spark
+      Edges:
+        Reducer 13 <- Map 10 (PARTITION-LEVEL SORT, 12), Map 12 
(PARTITION-LEVEL SORT, 12)
+        Reducer 14 <- Map 19 (PARTITION-LEVEL SORT, 21), Reducer 13 
(PARTITION-LEVEL SORT, 21)
+        Reducer 15 <- Reducer 14 (GROUP, 14)
+        Reducer 16 <- Reducer 15 (PARTITION-LEVEL SORT, 7)
+        Reducer 17 <- Reducer 16 (PARTITION-LEVEL SORT, 7)
+        Reducer 2 <- Map 1 (PARTITION-LEVEL SORT, 6), Map 10 (PARTITION-LEVEL 
SORT, 6)
+        Reducer 21 <- Map 10 (PARTITION-LEVEL SORT, 15), Map 20 
(PARTITION-LEVEL SORT, 15)
+        Reducer 22 <- Map 27 (PARTITION-LEVEL SORT, 28), Reducer 21 
(PARTITION-LEVEL SORT, 28)
+        Reducer 23 <- Reducer 22 (GROUP, 18)
+        Reducer 24 <- Reducer 23 (PARTITION-LEVEL SORT, 9)
+        Reducer 25 <- Reducer 24 (PARTITION-LEVEL SORT, 9)
+        Reducer 3 <- Map 11 (PARTITION-LEVEL SORT, 10), Reducer 2 
(PARTITION-LEVEL SORT, 10)
+        Reducer 4 <- Reducer 3 (GROUP, 7)
+        Reducer 5 <- Reducer 4 (PARTITION-LEVEL SORT, 4)
+        Reducer 6 <- Reducer 5 (PARTITION-LEVEL SORT, 4)
+        Reducer 7 <- Reducer 17 (GROUP, 7), Reducer 6 (GROUP, 7)
+        Reducer 8 <- Reducer 25 (GROUP, 10), Reducer 7 (GROUP, 10)
+        Reducer 9 <- Reducer 8 (SORT, 1)
+#### A masked pattern was here ####
+      Vertices:
+        Map 1 
+            Map Operator Tree:
+                TableScan
+                  alias: ws
+                  Statistics: Num rows: 144002668 Data size: 19580198212 Basic 
stats: COMPLETE Column stats: NONE
+                  Filter Operator
+                    predicate: ((ws_net_paid > 0) and (ws_net_profit > 1) and 
(ws_quantity > 0) and ws_item_sk is not null and ws_order_number is not null 
and ws_sold_date_sk is not null) (type: boolean)
+                    Statistics: Num rows: 5333432 Data size: 725192506 Basic 
stats: COMPLETE Column stats: NONE
+                    Select Operator
+                      expressions: ws_sold_date_sk (type: int), ws_item_sk 
(type: int), ws_order_number (type: int), ws_quantity (type: int), ws_net_paid 
(type: decimal(7,2))
+                      outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                      Statistics: Num rows: 5333432 Data size: 725192506 Basic 
stats: COMPLETE Column stats: NONE
+                      Reduce Output Operator
+                        key expressions: _col0 (type: int)
+                        sort order: +
+                        Map-reduce partition columns: _col0 (type: int)
+                        Statistics: Num rows: 5333432 Data size: 725192506 
Basic stats: COMPLETE Column stats: NONE
+                        value expressions: _col1 (type: int), _col2 (type: 
int), _col3 (type: int), _col4 (type: decimal(7,2))
+        Map 10 
+            Map Operator Tree:
+                TableScan
+                  alias: date_dim
+                  Statistics: Num rows: 73049 Data size: 81741831 Basic stats: 
COMPLETE Column stats: NONE
+                  Filter Operator
+                    predicate: ((d_moy = 12) and (d_year = 2000) and d_date_sk 
is not null) (type: boolean)
+                    Statistics: Num rows: 18262 Data size: 20435178 Basic 
stats: COMPLETE Column stats: NONE
+                    Select Operator
+                      expressions: d_date_sk (type: int)
+                      outputColumnNames: _col0
+                      Statistics: Num rows: 18262 Data size: 20435178 Basic 
stats: COMPLETE Column stats: NONE
+                      Reduce Output Operator
+                        key expressions: _col0 (type: int)
+                        sort order: +
+                        Map-reduce partition columns: _col0 (type: int)
+                        Statistics: Num rows: 18262 Data size: 20435178 Basic 
stats: COMPLETE Column stats: NONE
+        Map 11 
+            Map Operator Tree:
+                TableScan
+                  alias: wr
+                  Statistics: Num rows: 14398467 Data size: 1325194184 Basic 
stats: COMPLETE Column stats: NONE
+                  Filter Operator
+                    predicate: ((wr_return_amt > 10000) and wr_item_sk is not 
null and wr_order_number is not null) (type: boolean)
+                    Statistics: Num rows: 4799489 Data size: 441731394 Basic 
stats: COMPLETE Column stats: NONE
+                    Select Operator
+                      expressions: wr_item_sk (type: int), wr_order_number 
(type: int), wr_return_quantity (type: int), wr_return_amt (type: decimal(7,2))
+                      outputColumnNames: _col0, _col1, _col2, _col3
+                      Statistics: Num rows: 4799489 Data size: 441731394 Basic 
stats: COMPLETE Column stats: NONE
+                      Reduce Output Operator
+                        key expressions: _col0 (type: int), _col1 (type: int)
+                        sort order: ++
+                        Map-reduce partition columns: _col0 (type: int), _col1 
(type: int)
+                        Statistics: Num rows: 4799489 Data size: 441731394 
Basic stats: COMPLETE Column stats: NONE
+                        value expressions: _col2 (type: int), _col3 (type: 
decimal(7,2))
+        Map 12 
+            Map Operator Tree:
+                TableScan
+                  alias: cs
+                  Statistics: Num rows: 287989836 Data size: 38999608952 Basic 
stats: COMPLETE Column stats: NONE
+                  Filter Operator
+                    predicate: ((cs_net_paid > 0) and (cs_net_profit > 1) and 
(cs_quantity > 0) and cs_item_sk is not null and cs_order_number is not null 
and cs_sold_date_sk is not null) (type: boolean)
+                    Statistics: Num rows: 10666290 Data size: 1444429931 Basic 
stats: COMPLETE Column stats: NONE
+                    Select Operator
+                      expressions: cs_sold_date_sk (type: int), cs_item_sk 
(type: int), cs_order_number (type: int), cs_quantity (type: int), cs_net_paid 
(type: decimal(7,2))
+                      outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                      Statistics: Num rows: 10666290 Data size: 1444429931 
Basic stats: COMPLETE Column stats: NONE
+                      Reduce Output Operator
+                        key expressions: _col0 (type: int)
+                        sort order: +
+                        Map-reduce partition columns: _col0 (type: int)
+                        Statistics: Num rows: 10666290 Data size: 1444429931 
Basic stats: COMPLETE Column stats: NONE
+                        value expressions: _col1 (type: int), _col2 (type: 
int), _col3 (type: int), _col4 (type: decimal(7,2))
+        Map 19 
+            Map Operator Tree:
+                TableScan
+                  alias: cr
+                  Statistics: Num rows: 28798881 Data size: 3057234680 Basic 
stats: COMPLETE Column stats: NONE
+                  Filter Operator
+                    predicate: ((cr_return_amount > 10000) and cr_item_sk is 
not null and cr_order_number is not null) (type: boolean)
+                    Statistics: Num rows: 9599627 Data size: 1019078226 Basic 
stats: COMPLETE Column stats: NONE
+                    Select Operator
+                      expressions: cr_item_sk (type: int), cr_order_number 
(type: int), cr_return_quantity (type: int), cr_return_amount (type: 
decimal(7,2))
+                      outputColumnNames: _col0, _col1, _col2, _col3
+                      Statistics: Num rows: 9599627 Data size: 1019078226 
Basic stats: COMPLETE Column stats: NONE
+                      Reduce Output Operator
+                        key expressions: _col0 (type: int), _col1 (type: int)
+                        sort order: ++
+                        Map-reduce partition columns: _col0 (type: int), _col1 
(type: int)
+                        Statistics: Num rows: 9599627 Data size: 1019078226 
Basic stats: COMPLETE Column stats: NONE
+                        value expressions: _col2 (type: int), _col3 (type: 
decimal(7,2))
+        Map 20 
+            Map Operator Tree:
+                TableScan
+                  alias: sts
+                  Statistics: Num rows: 575995635 Data size: 50814502088 Basic 
stats: COMPLETE Column stats: NONE
+                  Filter Operator
+                    predicate: ((ss_net_paid > 0) and (ss_net_profit > 1) and 
(ss_quantity > 0) and ss_item_sk is not null and ss_sold_date_sk is not null 
and ss_ticket_number is not null) (type: boolean)
+                    Statistics: Num rows: 21333171 Data size: 1882018537 Basic 
stats: COMPLETE Column stats: NONE
+                    Select Operator
+                      expressions: ss_sold_date_sk (type: int), ss_item_sk 
(type: int), ss_ticket_number (type: int), ss_quantity (type: int), ss_net_paid 
(type: decimal(7,2))
+                      outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                      Statistics: Num rows: 21333171 Data size: 1882018537 
Basic stats: COMPLETE Column stats: NONE
+                      Reduce Output Operator
+                        key expressions: _col0 (type: int)
+                        sort order: +
+                        Map-reduce partition columns: _col0 (type: int)
+                        Statistics: Num rows: 21333171 Data size: 1882018537 
Basic stats: COMPLETE Column stats: NONE
+                        value expressions: _col1 (type: int), _col2 (type: 
int), _col3 (type: int), _col4 (type: decimal(7,2))
+        Map 27 
+            Map Operator Tree:
+                TableScan
+                  alias: sr
+                  Statistics: Num rows: 57591150 Data size: 4462194832 Basic 
stats: COMPLETE Column stats: NONE
+                  Filter Operator
+                    predicate: ((sr_return_amt > 10000) and sr_item_sk is not 
null and sr_ticket_number is not null) (type: boolean)
+                    Statistics: Num rows: 19197050 Data size: 1487398277 Basic 
stats: COMPLETE Column stats: NONE
+                    Select Operator
+                      expressions: sr_item_sk (type: int), sr_ticket_number 
(type: int), sr_return_quantity (type: int), sr_return_amt (type: decimal(7,2))
+                      outputColumnNames: _col0, _col1, _col2, _col3
+                      Statistics: Num rows: 19197050 Data size: 1487398277 
Basic stats: COMPLETE Column stats: NONE
+                      Reduce Output Operator
+                        key expressions: _col0 (type: int), _col1 (type: int)
+                        sort order: ++
+                        Map-reduce partition columns: _col0 (type: int), _col1 
(type: int)
+                        Statistics: Num rows: 19197050 Data size: 1487398277 
Basic stats: COMPLETE Column stats: NONE
+                        value expressions: _col2 (type: int), _col3 (type: 
decimal(7,2))
+        Reducer 13 
+            Reduce Operator Tree:
+              Join Operator
+                condition map:
+                     Inner Join 0 to 1
+                keys:
+                  0 _col0 (type: int)
+                  1 _col0 (type: int)
+                outputColumnNames: _col1, _col2, _col3, _col4
+                Statistics: Num rows: 11732919 Data size: 1588872958 Basic 
stats: COMPLETE Column stats: NONE
+                Reduce Output Operator
+                  key expressions: _col1 (type: int), _col2 (type: int)
+                  sort order: ++
+                  Map-reduce partition columns: _col1 (type: int), _col2 
(type: int)
+                  Statistics: Num rows: 11732919 Data size: 1588872958 Basic 
stats: COMPLETE Column stats: NONE
+                  value expressions: _col3 (type: int), _col4 (type: 
decimal(7,2))
+        Reducer 14 
+            Reduce Operator Tree:
+              Join Operator
+                condition map:
+                     Inner Join 0 to 1
+                keys:
+                  0 _col1 (type: int), _col2 (type: int)
+                  1 _col0 (type: int), _col1 (type: int)
+                outputColumnNames: _col1, _col3, _col4, _col11, _col12
+                Statistics: Num rows: 12906211 Data size: 1747760291 Basic 
stats: COMPLETE Column stats: NONE
+                Select Operator
+                  expressions: _col1 (type: int), COALESCE(_col11,0) (type: 
int), COALESCE(_col3,0) (type: int), COALESCE(_col12,0) (type: decimal(12,2)), 
COALESCE(_col4,0) (type: decimal(12,2))
+                  outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                  Statistics: Num rows: 12906211 Data size: 1747760291 Basic 
stats: COMPLETE Column stats: NONE
+                  Group By Operator
+                    aggregations: sum(_col1), sum(_col2), sum(_col3), 
sum(_col4)
+                    keys: _col0 (type: int)
+                    mode: hash
+                    outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                    Statistics: Num rows: 12906211 Data size: 1747760291 Basic 
stats: COMPLETE Column stats: NONE
+                    Reduce Output Operator
+                      key expressions: _col0 (type: int)
+                      sort order: +
+                      Map-reduce partition columns: _col0 (type: int)
+                      Statistics: Num rows: 12906211 Data size: 1747760291 
Basic stats: COMPLETE Column stats: NONE
+                      value expressions: _col1 (type: bigint), _col2 (type: 
bigint), _col3 (type: decimal(22,2)), _col4 (type: decimal(22,2))
+        Reducer 15 
+            Reduce Operator Tree:
+              Group By Operator
+                aggregations: sum(VALUE._col0), sum(VALUE._col1), 
sum(VALUE._col2), sum(VALUE._col3)
+                keys: KEY._col0 (type: int)
+                mode: mergepartial
+                outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                Statistics: Num rows: 6453105 Data size: 873880077 Basic 
stats: COMPLETE Column stats: NONE
+                Reduce Output Operator
+                  key expressions: 0 (type: int), (CAST( _col1 AS 
decimal(15,4)) / CAST( _col2 AS decimal(15,4))) (type: decimal(35,20))
+                  sort order: ++
+                  Map-reduce partition columns: 0 (type: int)
+                  Statistics: Num rows: 6453105 Data size: 873880077 Basic 
stats: COMPLETE Column stats: NONE
+                  value expressions: _col0 (type: int), _col1 (type: bigint), 
_col2 (type: bigint), _col3 (type: decimal(22,2)), _col4 (type: decimal(22,2))
+        Reducer 16 
+            Reduce Operator Tree:
+              Select Operator
+                expressions: VALUE._col0 (type: int), VALUE._col1 (type: 
bigint), VALUE._col2 (type: bigint), VALUE._col3 (type: decimal(22,2)), 
VALUE._col4 (type: decimal(22,2))
+                outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                Statistics: Num rows: 6453105 Data size: 873880077 Basic 
stats: COMPLETE Column stats: NONE
+                PTF Operator
+                  Function definitions:
+                      Input definition
+                        input alias: ptf_0
+                        output shape: _col0: int, _col1: bigint, _col2: 
bigint, _col3: decimal(22,2), _col4: decimal(22,2)
+                        type: WINDOWING
+                      Windowing table definition
+                        input alias: ptf_1
+                        name: windowingtablefunction
+                        order by: (CAST( _col1 AS decimal(15,4)) / CAST( _col2 
AS decimal(15,4))) ASC NULLS FIRST
+                        partition by: 0
+                        raw input shape:
+                        window functions:
+                            window function definition
+                              alias: rank_window_0
+                              arguments: (CAST( _col1 AS decimal(15,4)) / 
CAST( _col2 AS decimal(15,4)))
+                              name: rank
+                              window function: GenericUDAFRankEvaluator
+                              window frame: ROWS PRECEDING(MAX)~FOLLOWING(MAX)
+                              isPivotResult: true
+                  Statistics: Num rows: 6453105 Data size: 873880077 Basic 
stats: COMPLETE Column stats: NONE
+                  Select Operator
+                    expressions: rank_window_0 (type: int), _col0 (type: int), 
_col1 (type: bigint), _col2 (type: bigint), _col3 (type: decimal(22,2)), _col4 
(type: decimal(22,2))
+                    outputColumnNames: rank_window_0, _col0, _col1, _col2, 
_col3, _col4
+                    Statistics: Num rows: 6453105 Data size: 873880077 Basic 
stats: COMPLETE Column stats: NONE
+                    Reduce Output Operator
+                      key expressions: 0 (type: int), (CAST( _col3 AS 
decimal(15,4)) / CAST( _col4 AS decimal(15,4))) (type: decimal(35,20))
+                      sort order: ++
+                      Map-reduce partition columns: 0 (type: int)
+                      Statistics: Num rows: 6453105 Data size: 873880077 Basic 
stats: COMPLETE Column stats: NONE
+                      value expressions: rank_window_0 (type: int), _col0 
(type: int), _col1 (type: bigint), _col2 (type: bigint), _col3 (type: 
decimal(22,2)), _col4 (type: decimal(22,2))
+        Reducer 17 
+            Reduce Operator Tree:
+              Select Operator
+                expressions: VALUE._col0 (type: int), VALUE._col1 (type: int), 
VALUE._col2 (type: bigint), VALUE._col3 (type: bigint), VALUE._col4 (type: 
decimal(22,2)), VALUE._col5 (type: decimal(22,2))
+                outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
+                Statistics: Num rows: 6453105 Data size: 873880077 Basic 
stats: COMPLETE Column stats: NONE
+                PTF Operator
+                  Function definitions:
+                      Input definition
+                        input alias: ptf_0
+                        type: WINDOWING
+                      Windowing table definition
+                        input alias: ptf_1
+                        name: windowingtablefunction
+                        order by: (CAST( _col4 AS decimal(15,4)) / CAST( _col5 
AS decimal(15,4))) ASC NULLS FIRST
+                        partition by: 0
+                        raw input shape:
+                        window functions:
+                            window function definition
+                              alias: rank_window_1
+                              arguments: (CAST( _col4 AS decimal(15,4)) / 
CAST( _col5 AS decimal(15,4)))
+                              name: rank
+                              window function: GenericUDAFRankEvaluator
+                              window frame: ROWS PRECEDING(MAX)~FOLLOWING(MAX)
+                              isPivotResult: true
+                  Statistics: Num rows: 6453105 Data size: 873880077 Basic 
stats: COMPLETE Column stats: NONE
+                  Filter Operator
+                    predicate: ((_col0 <= 10) or (rank_window_1 <= 10)) (type: 
boolean)
+                    Statistics: Num rows: 4302070 Data size: 582586718 Basic 
stats: COMPLETE Column stats: NONE
+                    Select Operator
+                      expressions: 'catalog' (type: string), _col1 (type: 
int), (CAST( _col2 AS decimal(15,4)) / CAST( _col3 AS decimal(15,4))) (type: 
decimal(35,20)), _col0 (type: int), rank_window_1 (type: int)
+                      outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                      Statistics: Num rows: 4302070 Data size: 582586718 Basic 
stats: COMPLETE Column stats: NONE
+                      Group By Operator
+                        keys: _col0 (type: string), _col3 (type: int), _col4 
(type: int), _col1 (type: int), _col2 (type: decimal(35,20))
+                        mode: hash
+                        outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                        Statistics: Num rows: 6453220 Data size: 875080950 
Basic stats: COMPLETE Column stats: NONE
+                        Reduce Output Operator
+                          key expressions: _col0 (type: string), _col1 (type: 
int), _col2 (type: int), _col3 (type: int), _col4 (type: decimal(35,20))
+                          sort order: +++++
+                          Map-reduce partition columns: _col0 (type: string), 
_col1 (type: int), _col2 (type: int), _col3 (type: int), _col4 (type: 
decimal(35,20))
+                          Statistics: Num rows: 6453220 Data size: 875080950 
Basic stats: COMPLETE Column stats: NONE
+        Reducer 2 
+            Reduce Operator Tree:
+              Join Operator
+                condition map:
+                     Inner Join 0 to 1
+                keys:
+                  0 _col0 (type: int)
+                  1 _col0 (type: int)
+                outputColumnNames: _col1, _col2, _col3, _col4
+                Statistics: Num rows: 5866775 Data size: 797711773 Basic 
stats: COMPLETE Column stats: NONE
+                Reduce Output Operator
+                  key expressions: _col1 (type: int), _col2 (type: int)
+                  sort order: ++
+                  Map-reduce partition columns: _col1 (type: int), _col2 
(type: int)
+                  Statistics: Num rows: 5866775 Data size: 797711773 Basic 
stats: COMPLETE Column stats: NONE
+                  value expressions: _col3 (type: int), _col4 (type: 
decimal(7,2))
+        Reducer 21 
+            Reduce Operator Tree:
+              Join Operator
+                condition map:
+                     Inner Join 0 to 1
+                keys:
+                  0 _col0 (type: int)
+                  1 _col0 (type: int)
+                outputColumnNames: _col1, _col2, _col3, _col4
+                Statistics: Num rows: 23466488 Data size: 2070220435 Basic 
stats: COMPLETE Column stats: NONE
+                Reduce Output Operator
+                  key expressions: _col1 (type: int), _col2 (type: int)
+                  sort order: ++
+                  Map-reduce partition columns: _col1 (type: int), _col2 
(type: int)
+                  Statistics: Num rows: 23466488 Data size: 2070220435 Basic 
stats: COMPLETE Column stats: NONE
+                  value expressions: _col3 (type: int), _col4 (type: 
decimal(7,2))
+        Reducer 22 
+            Reduce Operator Tree:
+              Join Operator
+                condition map:
+                     Inner Join 0 to 1
+                keys:
+                  0 _col1 (type: int), _col2 (type: int)
+                  1 _col0 (type: int), _col1 (type: int)
+                outputColumnNames: _col1, _col3, _col4, _col11, _col12
+                Statistics: Num rows: 25813137 Data size: 2277242527 Basic 
stats: COMPLETE Column stats: NONE
+                Select Operator
+                  expressions: _col1 (type: int), COALESCE(_col11,0) (type: 
int), COALESCE(_col3,0) (type: int), COALESCE(_col12,0) (type: decimal(12,2)), 
COALESCE(_col4,0) (type: decimal(12,2))
+                  outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                  Statistics: Num rows: 25813137 Data size: 2277242527 Basic 
stats: COMPLETE Column stats: NONE
+                  Group By Operator
+                    aggregations: sum(_col1), sum(_col2), sum(_col3), 
sum(_col4)
+                    keys: _col0 (type: int)
+                    mode: hash
+                    outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                    Statistics: Num rows: 25813137 Data size: 2277242527 Basic 
stats: COMPLETE Column stats: NONE
+                    Reduce Output Operator
+                      key expressions: _col0 (type: int)
+                      sort order: +
+                      Map-reduce partition columns: _col0 (type: int)
+                      Statistics: Num rows: 25813137 Data size: 2277242527 
Basic stats: COMPLETE Column stats: NONE
+                      value expressions: _col1 (type: bigint), _col2 (type: 
bigint), _col3 (type: decimal(22,2)), _col4 (type: decimal(22,2))
+        Reducer 23 
+            Reduce Operator Tree:
+              Group By Operator
+                aggregations: sum(VALUE._col0), sum(VALUE._col1), 
sum(VALUE._col2), sum(VALUE._col3)
+                keys: KEY._col0 (type: int)
+                mode: mergepartial
+                outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                Statistics: Num rows: 12906568 Data size: 1138621219 Basic 
stats: COMPLETE Column stats: NONE
+                Reduce Output Operator
+                  key expressions: 0 (type: int), (CAST( _col1 AS 
decimal(15,4)) / CAST( _col2 AS decimal(15,4))) (type: decimal(35,20))
+                  sort order: ++
+                  Map-reduce partition columns: 0 (type: int)
+                  Statistics: Num rows: 12906568 Data size: 1138621219 Basic 
stats: COMPLETE Column stats: NONE
+                  value expressions: _col0 (type: int), _col1 (type: bigint), 
_col2 (type: bigint), _col3 (type: decimal(22,2)), _col4 (type: decimal(22,2))
+        Reducer 24 
+            Reduce Operator Tree:
+              Select Operator
+                expressions: VALUE._col0 (type: int), VALUE._col1 (type: 
bigint), VALUE._col2 (type: bigint), VALUE._col3 (type: decimal(22,2)), 
VALUE._col4 (type: decimal(22,2))
+                outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                Statistics: Num rows: 12906568 Data size: 1138621219 Basic 
stats: COMPLETE Column stats: NONE
+                PTF Operator
+                  Function definitions:
+                      Input definition
+                        input alias: ptf_0
+                        output shape: _col0: int, _col1: bigint, _col2: 
bigint, _col3: decimal(22,2), _col4: decimal(22,2)
+                        type: WINDOWING
+                      Windowing table definition
+                        input alias: ptf_1
+                        name: windowingtablefunction
+                        order by: (CAST( _col1 AS decimal(15,4)) / CAST( _col2 
AS decimal(15,4))) ASC NULLS FIRST
+                        partition by: 0
+                        raw input shape:
+                        window functions:
+                            window function definition
+                              alias: rank_window_0
+                              arguments: (CAST( _col1 AS decimal(15,4)) / 
CAST( _col2 AS decimal(15,4)))
+                              name: rank
+                              window function: GenericUDAFRankEvaluator
+                              window frame: ROWS PRECEDING(MAX)~FOLLOWING(MAX)
+                              isPivotResult: true
+                  Statistics: Num rows: 12906568 Data size: 1138621219 Basic 
stats: COMPLETE Column stats: NONE
+                  Select Operator
+                    expressions: rank_window_0 (type: int), _col0 (type: int), 
_col1 (type: bigint), _col2 (type: bigint), _col3 (type: decimal(22,2)), _col4 
(type: decimal(22,2))
+                    outputColumnNames: rank_window_0, _col0, _col1, _col2, 
_col3, _col4
+                    Statistics: Num rows: 12906568 Data size: 1138621219 Basic 
stats: COMPLETE Column stats: NONE
+                    Reduce Output Operator
+                      key expressions: 0 (type: int), (CAST( _col3 AS 
decimal(15,4)) / CAST( _col4 AS decimal(15,4))) (type: decimal(35,20))
+                      sort order: ++
+                      Map-reduce partition columns: 0 (type: int)
+                      Statistics: Num rows: 12906568 Data size: 1138621219 
Basic stats: COMPLETE Column stats: NONE
+                      value expressions: rank_window_0 (type: int), _col0 
(type: int), _col1 (type: bigint), _col2 (type: bigint), _col3 (type: 
decimal(22,2)), _col4 (type: decimal(22,2))
+        Reducer 25 
+            Reduce Operator Tree:
+              Select Operator
+                expressions: VALUE._col0 (type: int), VALUE._col1 (type: int), 
VALUE._col2 (type: bigint), VALUE._col3 (type: bigint), VALUE._col4 (type: 
decimal(22,2)), VALUE._col5 (type: decimal(22,2))
+                outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
+                Statistics: Num rows: 12906568 Data size: 1138621219 Basic 
stats: COMPLETE Column stats: NONE
+                PTF Operator
+                  Function definitions:
+                      Input definition
+                        input alias: ptf_0
+                        type: WINDOWING
+                      Windowing table definition
+                        input alias: ptf_1
+                        name: windowingtablefunction
+                        order by: (CAST( _col4 AS decimal(15,4)) / CAST( _col5 
AS decimal(15,4))) ASC NULLS FIRST
+                        partition by: 0
+                        raw input shape:
+                        window functions:
+                            window function definition
+                              alias: rank_window_1
+                              arguments: (CAST( _col4 AS decimal(15,4)) / 
CAST( _col5 AS decimal(15,4)))
+                              name: rank
+                              window function: GenericUDAFRankEvaluator
+                              window frame: ROWS PRECEDING(MAX)~FOLLOWING(MAX)
+                              isPivotResult: true
+                  Statistics: Num rows: 12906568 Data size: 1138621219 Basic 
stats: COMPLETE Column stats: NONE
+                  Filter Operator
+                    predicate: ((_col0 <= 10) or (rank_window_1 <= 10)) (type: 
boolean)
+                    Statistics: Num rows: 8604378 Data size: 759080753 Basic 
stats: COMPLETE Column stats: NONE
+                    Select Operator
+                      expressions: 'store' (type: string), _col1 (type: int), 
(CAST( _col2 AS decimal(15,4)) / CAST( _col3 AS decimal(15,4))) (type: 
decimal(35,20)), _col0 (type: int), rank_window_1 (type: int)
+                      outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                      Statistics: Num rows: 8604378 Data size: 759080753 Basic 
stats: COMPLETE Column stats: NONE
+                      Group By Operator
+                        keys: _col0 (type: string), _col3 (type: int), _col4 
(type: int), _col1 (type: int), _col2 (type: decimal(35,20))
+                        mode: hash
+                        outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                        Statistics: Num rows: 11830988 Data size: 1196621228 
Basic stats: COMPLETE Column stats: NONE
+                        Reduce Output Operator
+                          key expressions: _col0 (type: string), _col1 (type: 
int), _col2 (type: int), _col3 (type: int), _col4 (type: decimal(35,20))
+                          sort order: +++++
+                          Map-reduce partition columns: _col0 (type: string), 
_col1 (type: int), _col2 (type: int), _col3 (type: int), _col4 (type: 
decimal(35,20))
+                          Statistics: Num rows: 11830988 Data size: 1196621228 
Basic stats: COMPLETE Column stats: NONE
+                          TopN Hash Memory Usage: 0.1
+        Reducer 3 
+            Reduce Operator Tree:
+              Join Operator
+                condition map:
+                     Inner Join 0 to 1
+                keys:
+                  0 _col1 (type: int), _col2 (type: int)
+                  1 _col0 (type: int), _col1 (type: int)
+                outputColumnNames: _col1, _col3, _col4, _col11, _col12
+                Statistics: Num rows: 6453452 Data size: 877482969 Basic 
stats: COMPLETE Column stats: NONE
+                Select Operator
+                  expressions: _col1 (type: int), COALESCE(_col11,0) (type: 
int), COALESCE(_col3,0) (type: int), COALESCE(_col12,0) (type: decimal(12,2)), 
COALESCE(_col4,0) (type: decimal(12,2))
+                  outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                  Statistics: Num rows: 6453452 Data size: 877482969 Basic 
stats: COMPLETE Column stats: NONE
+                  Group By Operator
+                    aggregations: sum(_col1), sum(_col2), sum(_col3), 
sum(_col4)
+                    keys: _col0 (type: int)
+                    mode: hash
+                    outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                    Statistics: Num rows: 6453452 Data size: 877482969 Basic 
stats: COMPLETE Column stats: NONE
+                    Reduce Output Operator
+                      key expressions: _col0 (type: int)
+                      sort order: +
+                      Map-reduce partition columns: _col0 (type: int)
+                      Statistics: Num rows: 6453452 Data size: 877482969 Basic 
stats: COMPLETE Column stats: NONE
+                      value expressions: _col1 (type: bigint), _col2 (type: 
bigint), _col3 (type: decimal(22,2)), _col4 (type: decimal(22,2))
+        Reducer 4 
+            Reduce Operator Tree:
+              Group By Operator
+                aggregations: sum(VALUE._col0), sum(VALUE._col1), 
sum(VALUE._col2), sum(VALUE._col3)
+                keys: KEY._col0 (type: int)
+                mode: mergepartial
+                outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                Statistics: Num rows: 3226726 Data size: 438741484 Basic 
stats: COMPLETE Column stats: NONE
+                Reduce Output Operator
+                  key expressions: 0 (type: int), (CAST( _col1 AS 
decimal(15,4)) / CAST( _col2 AS decimal(15,4))) (type: decimal(35,20))
+                  sort order: ++
+                  Map-reduce partition columns: 0 (type: int)
+                  Statistics: Num rows: 3226726 Data size: 438741484 Basic 
stats: COMPLETE Column stats: NONE
+                  value expressions: _col0 (type: int), _col1 (type: bigint), 
_col2 (type: bigint), _col3 (type: decimal(22,2)), _col4 (type: decimal(22,2))
+        Reducer 5 
+            Reduce Operator Tree:
+              Select Operator
+                expressions: VALUE._col0 (type: int), VALUE._col1 (type: 
bigint), VALUE._col2 (type: bigint), VALUE._col3 (type: decimal(22,2)), 
VALUE._col4 (type: decimal(22,2))
+                outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                Statistics: Num rows: 3226726 Data size: 438741484 Basic 
stats: COMPLETE Column stats: NONE
+                PTF Operator
+                  Function definitions:
+                      Input definition
+                        input alias: ptf_0
+                        output shape: _col0: int, _col1: bigint, _col2: 
bigint, _col3: decimal(22,2), _col4: decimal(22,2)
+                        type: WINDOWING
+                      Windowing table definition
+                        input alias: ptf_1
+                        name: windowingtablefunction
+                        order by: (CAST( _col1 AS decimal(15,4)) / CAST( _col2 
AS decimal(15,4))) ASC NULLS FIRST
+                        partition by: 0
+                        raw input shape:
+                        window functions:
+                            window function definition
+                              alias: rank_window_0
+                              arguments: (CAST( _col1 AS decimal(15,4)) / 
CAST( _col2 AS decimal(15,4)))
+                              name: rank
+                              window function: GenericUDAFRankEvaluator
+                              window frame: ROWS PRECEDING(MAX)~FOLLOWING(MAX)
+                              isPivotResult: true
+                  Statistics: Num rows: 3226726 Data size: 438741484 Basic 
stats: COMPLETE Column stats: NONE
+                  Select Operator
+                    expressions: rank_window_0 (type: int), _col0 (type: int), 
_col1 (type: bigint), _col2 (type: bigint), _col3 (type: decimal(22,2)), _col4 
(type: decimal(22,2))
+                    outputColumnNames: rank_window_0, _col0, _col1, _col2, 
_col3, _col4
+                    Statistics: Num rows: 3226726 Data size: 438741484 Basic 
stats: COMPLETE Column stats: NONE
+                    Reduce Output Operator
+                      key expressions: 0 (type: int), (CAST( _col3 AS 
decimal(15,4)) / CAST( _col4 AS decimal(15,4))) (type: decimal(35,20))
+                      sort order: ++
+                      Map-reduce partition columns: 0 (type: int)
+                      Statistics: Num rows: 3226726 Data size: 438741484 Basic 
stats: COMPLETE Column stats: NONE
+                      value expressions: rank_window_0 (type: int), _col0 
(type: int), _col1 (type: bigint), _col2 (type: bigint), _col3 (type: 
decimal(22,2)), _col4 (type: decimal(22,2))
+        Reducer 6 
+            Reduce Operator Tree:
+              Select Operator
+                expressions: VALUE._col0 (type: int), VALUE._col1 (type: int), 
VALUE._col2 (type: bigint), VALUE._col3 (type: bigint), VALUE._col4 (type: 
decimal(22,2)), VALUE._col5 (type: decimal(22,2))
+                outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
+                Statistics: Num rows: 3226726 Data size: 438741484 Basic 
stats: COMPLETE Column stats: NONE
+                PTF Operator
+                  Function definitions:
+                      Input definition
+                        input alias: ptf_0
+                        type: WINDOWING
+                      Windowing table definition
+                        input alias: ptf_1
+                        name: windowingtablefunction
+                        order by: (CAST( _col4 AS decimal(15,4)) / CAST( _col5 
AS decimal(15,4))) ASC NULLS FIRST
+                        partition by: 0
+                        raw input shape:
+                        window functions:
+                            window function definition
+                              alias: rank_window_1
+                              arguments: (CAST( _col4 AS decimal(15,4)) / 
CAST( _col5 AS decimal(15,4)))
+                              name: rank
+                              window function: GenericUDAFRankEvaluator
+                              window frame: ROWS PRECEDING(MAX)~FOLLOWING(MAX)
+                              isPivotResult: true
+                  Statistics: Num rows: 3226726 Data size: 438741484 Basic 
stats: COMPLETE Column stats: NONE
+                  Filter Operator
+                    predicate: ((_col0 <= 10) or (rank_window_1 <= 10)) (type: 
boolean)
+                    Statistics: Num rows: 2151150 Data size: 292494232 Basic 
stats: COMPLETE Column stats: NONE
+                    Select Operator
+                      expressions: 'web' (type: string), _col1 (type: int), 
(CAST( _col2 AS decimal(15,4)) / CAST( _col3 AS decimal(15,4))) (type: 
decimal(35,20)), _col0 (type: int), rank_window_1 (type: int)
+                      outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                      Statistics: Num rows: 2151150 Data size: 292494232 Basic 
stats: COMPLETE Column stats: NONE
+                      Group By Operator
+                        keys: _col0 (type: string), _col3 (type: int), _col4 
(type: int), _col1 (type: int), _col2 (type: decimal(35,20))
+                        mode: hash
+                        outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                        Statistics: Num rows: 6453220 Data size: 875080950 
Basic stats: COMPLETE Column stats: NONE
+                        Reduce Output Operator
+                          key expressions: _col0 (type: string), _col1 (type: 
int), _col2 (type: int), _col3 (type: int), _col4 (type: decimal(35,20))
+                          sort order: +++++
+                          Map-reduce partition columns: _col0 (type: string), 
_col1 (type: int), _col2 (type: int), _col3 (type: int), _col4 (type: 
decimal(35,20))
+                          Statistics: Num rows: 6453220 Data size: 875080950 
Basic stats: COMPLETE Column stats: NONE
+        Reducer 7 
+            Reduce Operator Tree:
+              Group By Operator
+                keys: KEY._col0 (type: string), KEY._col1 (type: int), 
KEY._col2 (type: int), KEY._col3 (type: int), KEY._col4 (type: decimal(35,20))
+                mode: mergepartial
+                outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                Statistics: Num rows: 3226610 Data size: 437540475 Basic 
stats: COMPLETE Column stats: NONE
+                Select Operator
+                  expressions: _col0 (type: string), _col3 (type: int), _col4 
(type: decimal(35,20)), _col1 (type: int), _col2 (type: int)
+                  outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                  Statistics: Num rows: 3226610 Data size: 437540475 Basic 
stats: COMPLETE Column stats: NONE
+                  Group By Operator
+                    keys: _col0 (type: string), _col3 (type: int), _col4 
(type: int), _col1 (type: int), _col2 (type: decimal(35,20))
+                    mode: hash
+                    outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                    Statistics: Num rows: 11830988 Data size: 1196621228 Basic 
stats: COMPLETE Column stats: NONE
+                    Reduce Output Operator
+                      key expressions: _col0 (type: string), _col1 (type: 
int), _col2 (type: int), _col3 (type: int), _col4 (type: decimal(35,20))
+                      sort order: +++++
+                      Map-reduce partition columns: _col0 (type: string), 
_col1 (type: int), _col2 (type: int), _col3 (type: int), _col4 (type: 
decimal(35,20))
+                      Statistics: Num rows: 11830988 Data size: 1196621228 
Basic stats: COMPLETE Column stats: NONE
+                      TopN Hash Memory Usage: 0.1
+        Reducer 8 
+            Reduce Operator Tree:
+              Group By Operator
+                keys: KEY._col0 (type: string), KEY._col1 (type: int), 
KEY._col2 (type: int), KEY._col3 (type: int), KEY._col4 (type: decimal(35,20))
+                mode: mergepartial
+                outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                Statistics: Num rows: 5915494 Data size: 598310614 Basic 
stats: COMPLETE Column stats: NONE
+                Select Operator
+                  expressions: _col0 (type: string), _col3 (type: int), _col4 
(type: decimal(35,20)), _col1 (type: int), _col2 (type: int)
+                  outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                  Statistics: Num rows: 5915494 Data size: 598310614 Basic 
stats: COMPLETE Column stats: NONE
+                  Reduce Output Operator
+                    key expressions: _col0 (type: string), _col3 (type: int), 
_col4 (type: int)
+                    sort order: +++
+                    Statistics: Num rows: 5915494 Data size: 598310614 Basic 
stats: COMPLETE Column stats: NONE
+                    TopN Hash Memory Usage: 0.1
+                    value expressions: _col1 (type: int), _col2 (type: 
decimal(35,20))
+        Reducer 9 
+            Reduce Operator Tree:
+              Select Operator
+                expressions: KEY.reducesinkkey0 (type: string), VALUE._col0 
(type: int), VALUE._col1 (type: decimal(35,20)), KEY.reducesinkkey1 (type: 
int), KEY.reducesinkkey2 (type: int)
+                outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                Statistics: Num rows: 5915494 Data size: 598310614 Basic 
stats: COMPLETE Column stats: NONE
+                Limit
+                  Number of rows: 100
+                  Statistics: Num rows: 100 Data size: 10100 Basic stats: 
COMPLETE Column stats: NONE
+                  File Output Operator
+                    compressed: false
+                    Statistics: Num rows: 100 Data size: 10100 Basic stats: 
COMPLETE Column stats: NONE
+                    table:
+                        input format: 
org.apache.hadoop.mapred.SequenceFileInputFormat
+                        output format: 
org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
+                        serde: 
org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
+
+  Stage: Stage-0
+    Fetch Operator
+      limit: 100
+      Processor Tree:
+        ListSink
+

Reply via email to