[1/9] hive git commit: Addendum to HIVE-19396

2018-05-04 Thread hashutosh
Repository: hive
Updated Branches:
  refs/heads/branch-3 812ae7388 -> 10e126e7b


Addendum to HIVE-19396


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/10e126e7
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/10e126e7
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/10e126e7

Branch: refs/heads/branch-3
Commit: 10e126e7bcc37ea57a1b9814e1aa4ac7e178b9a4
Parents: 24b4666
Author: Ashutosh Chauhan 
Authored: Thu May 3 21:28:47 2018 -0700
Committer: Ashutosh Chauhan 
Committed: Fri May 4 14:05:28 2018 -0700

--
 .../materialized_view_create_rewrite_4.q.out| 312 ++-
 .../clientpositive/tez/explainanalyze_3.q.out   |   8 +-
 .../clientpositive/tez/explainuser_3.q.out  |   8 +-
 .../results/clientpositive/tez/tez-tag.q.out|   4 +-
 4 files changed, 175 insertions(+), 157 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hive/blob/10e126e7/ql/src/test/results/clientpositive/llap/materialized_view_create_rewrite_4.q.out
--
diff --git 
a/ql/src/test/results/clientpositive/llap/materialized_view_create_rewrite_4.q.out
 
b/ql/src/test/results/clientpositive/llap/materialized_view_create_rewrite_4.q.out
index c0862b0..4ffea62 100644
--- 
a/ql/src/test/results/clientpositive/llap/materialized_view_create_rewrite_4.q.out
+++ 
b/ql/src/test/results/clientpositive/llap/materialized_view_create_rewrite_4.q.out
@@ -659,24 +659,49 @@ POSTHOOK: query: EXPLAIN
 ALTER MATERIALIZED VIEW cmv_mat_view REBUILD
 POSTHOOK: type: QUERY
 STAGE DEPENDENCIES:
-  Stage-1 is a root stage
-  Stage-2 depends on stages: Stage-1
-  Stage-0 depends on stages: Stage-2
-  Stage-3 depends on stages: Stage-0
-  Stage-4 depends on stages: Stage-3
+  Stage-2 is a root stage
+  Stage-3 depends on stages: Stage-2
+  Stage-0 depends on stages: Stage-3
+  Stage-4 depends on stages: Stage-0
+  Stage-6 depends on stages: Stage-4, Stage-5
+  Stage-1 depends on stages: Stage-3
+  Stage-5 depends on stages: Stage-1
 
 STAGE PLANS:
-  Stage: Stage-1
+  Stage: Stage-2
 Tez
  A masked pattern was here 
   Edges:
-Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 4 (SIMPLE_EDGE)
-Reducer 3 <- Reducer 2 (SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Reducer 7 (ONE_TO_ONE_EDGE)
+Reducer 3 <- Reducer 2 (CUSTOM_SIMPLE_EDGE)
+Reducer 4 <- Reducer 2 (SIMPLE_EDGE)
+Reducer 6 <- Map 5 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
+Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
  A masked pattern was here 
   Vertices:
 Map 1 
 Map Operator Tree:
 TableScan
+  alias: default.cmv_mat_view
+  Statistics: Num rows: 2 Data size: 248 Basic stats: COMPLETE 
Column stats: COMPLETE
+  Filter Operator
+predicate: ((c > 10) and a is not null) (type: boolean)
+Statistics: Num rows: 1 Data size: 124 Basic stats: 
COMPLETE Column stats: COMPLETE
+Select Operator
+  expressions: a (type: int), c (type: decimal(10,2)), _c2 
(type: bigint), ROW__ID (type: struct)
+  outputColumnNames: _col0, _col1, _col2, _col3
+  Statistics: Num rows: 1 Data size: 200 Basic stats: 
COMPLETE Column stats: COMPLETE
+  Reduce Output Operator
+key expressions: _col0 (type: int), _col1 (type: 
decimal(10,2))
+sort order: ++
+Map-reduce partition columns: _col0 (type: int), _col1 
(type: decimal(10,2))
+Statistics: Num rows: 1 Data size: 200 Basic stats: 
COMPLETE Column stats: COMPLETE
+value expressions: _col2 (type: bigint), _col3 (type: 
struct)
+Execution mode: llap
+LLAP IO: may be used (ACID table)
+Map 5 
+Map Operator Tree:
+TableScan
   alias: cmv_basetable
   Statistics: Num rows: 5 Data size: 20 Basic stats: COMPLETE 
Column stats: COMPLETE
   Filter Operator
@@ -693,23 +718,23 @@ STAGE PLANS:
 Statistics: Num rows: 5 Data size: 20 Basic stats: 
COMPLETE Column stats: COMPLETE
 Execution mode: llap
 LLAP IO: may be used (ACID table)
-Map 4 
+Map 8 
 Map Operator Tree:
 TableScan
   alias: cmv_basetable_2
   Statistics: Num rows: 3 Data size: 360 Basic stats: COMPLETE 
Column stats: COMPLETE
   Filter Operator
-  

hive git commit: Addendum to HIVE-19396

2018-05-03 Thread hashutosh
Repository: hive
Updated Branches:
  refs/heads/master 1c3b82fb8 -> 39917ef44


Addendum to HIVE-19396


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/39917ef4
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/39917ef4
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/39917ef4

Branch: refs/heads/master
Commit: 39917ef4495c53597bac2bad7988cc8f0224972f
Parents: 1c3b82f
Author: Ashutosh Chauhan 
Authored: Thu May 3 21:28:47 2018 -0700
Committer: Ashutosh Chauhan 
Committed: Thu May 3 21:28:47 2018 -0700

--
 .../materialized_view_create_rewrite_4.q.out| 312 ++-
 .../clientpositive/tez/explainanalyze_3.q.out   |   8 +-
 .../clientpositive/tez/explainuser_3.q.out  |   8 +-
 .../results/clientpositive/tez/tez-tag.q.out|   4 +-
 4 files changed, 175 insertions(+), 157 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hive/blob/39917ef4/ql/src/test/results/clientpositive/llap/materialized_view_create_rewrite_4.q.out
--
diff --git 
a/ql/src/test/results/clientpositive/llap/materialized_view_create_rewrite_4.q.out
 
b/ql/src/test/results/clientpositive/llap/materialized_view_create_rewrite_4.q.out
index c0862b0..4ffea62 100644
--- 
a/ql/src/test/results/clientpositive/llap/materialized_view_create_rewrite_4.q.out
+++ 
b/ql/src/test/results/clientpositive/llap/materialized_view_create_rewrite_4.q.out
@@ -659,24 +659,49 @@ POSTHOOK: query: EXPLAIN
 ALTER MATERIALIZED VIEW cmv_mat_view REBUILD
 POSTHOOK: type: QUERY
 STAGE DEPENDENCIES:
-  Stage-1 is a root stage
-  Stage-2 depends on stages: Stage-1
-  Stage-0 depends on stages: Stage-2
-  Stage-3 depends on stages: Stage-0
-  Stage-4 depends on stages: Stage-3
+  Stage-2 is a root stage
+  Stage-3 depends on stages: Stage-2
+  Stage-0 depends on stages: Stage-3
+  Stage-4 depends on stages: Stage-0
+  Stage-6 depends on stages: Stage-4, Stage-5
+  Stage-1 depends on stages: Stage-3
+  Stage-5 depends on stages: Stage-1
 
 STAGE PLANS:
-  Stage: Stage-1
+  Stage: Stage-2
 Tez
  A masked pattern was here 
   Edges:
-Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 4 (SIMPLE_EDGE)
-Reducer 3 <- Reducer 2 (SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Reducer 7 (ONE_TO_ONE_EDGE)
+Reducer 3 <- Reducer 2 (CUSTOM_SIMPLE_EDGE)
+Reducer 4 <- Reducer 2 (SIMPLE_EDGE)
+Reducer 6 <- Map 5 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
+Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
  A masked pattern was here 
   Vertices:
 Map 1 
 Map Operator Tree:
 TableScan
+  alias: default.cmv_mat_view
+  Statistics: Num rows: 2 Data size: 248 Basic stats: COMPLETE 
Column stats: COMPLETE
+  Filter Operator
+predicate: ((c > 10) and a is not null) (type: boolean)
+Statistics: Num rows: 1 Data size: 124 Basic stats: 
COMPLETE Column stats: COMPLETE
+Select Operator
+  expressions: a (type: int), c (type: decimal(10,2)), _c2 
(type: bigint), ROW__ID (type: struct)
+  outputColumnNames: _col0, _col1, _col2, _col3
+  Statistics: Num rows: 1 Data size: 200 Basic stats: 
COMPLETE Column stats: COMPLETE
+  Reduce Output Operator
+key expressions: _col0 (type: int), _col1 (type: 
decimal(10,2))
+sort order: ++
+Map-reduce partition columns: _col0 (type: int), _col1 
(type: decimal(10,2))
+Statistics: Num rows: 1 Data size: 200 Basic stats: 
COMPLETE Column stats: COMPLETE
+value expressions: _col2 (type: bigint), _col3 (type: 
struct)
+Execution mode: llap
+LLAP IO: may be used (ACID table)
+Map 5 
+Map Operator Tree:
+TableScan
   alias: cmv_basetable
   Statistics: Num rows: 5 Data size: 20 Basic stats: COMPLETE 
Column stats: COMPLETE
   Filter Operator
@@ -693,23 +718,23 @@ STAGE PLANS:
 Statistics: Num rows: 5 Data size: 20 Basic stats: 
COMPLETE Column stats: COMPLETE
 Execution mode: llap
 LLAP IO: may be used (ACID table)
-Map 4 
+Map 8 
 Map Operator Tree:
 TableScan
   alias: cmv_basetable_2
   Statistics: Num rows: 3 Data size: 360 Basic stats: COMPLETE 
Column stats: COMPLETE
   Filter Operator
-