http://git-wip-us.apache.org/repos/asf/hive/blob/b356aae0/ql/src/test/results/clientpositive/llap/subquery_notin.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/llap/subquery_notin.q.out 
b/ql/src/test/results/clientpositive/llap/subquery_notin.q.out
index c84477e..4692cb4 100644
--- a/ql/src/test/results/clientpositive/llap/subquery_notin.q.out
+++ b/ql/src/test/results/clientpositive/llap/subquery_notin.q.out
@@ -7,6 +7,8 @@ where src.key not in
     where s1.key > '2'
   )
 PREHOOK: type: QUERY
+PREHOOK: Input: default@src
+#### A masked pattern was here ####
 POSTHOOK: query: explain
 select * 
 from src 
@@ -15,6 +17,8 @@ where src.key not in
     where s1.key > '2'
   )
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@src
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -296,6 +300,8 @@ where b.p_name not in
   where r <= 2 and b.p_mfgr = a.p_mfgr 
   )
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain
 select p_mfgr, b.p_name, p_size 
 from part b 
@@ -305,6 +311,8 @@ where b.p_name not in
   where r <= 2 and b.p_mfgr = a.p_mfgr 
   )
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -581,6 +589,8 @@ part where part.p_size not in
   where r <= 2
   )
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain
 select p_name, p_size 
 from 
@@ -590,6 +600,8 @@ part where part.p_size not in
   where r <= 2
   )
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -858,6 +870,8 @@ from part b where b.p_size not in
   where r <= 2 and b.p_mfgr = a.p_mfgr
   )
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain
 select p_mfgr, p_name, p_size
 from part b where b.p_size not in
@@ -866,6 +880,8 @@ from part b where b.p_size not in
   where r <= 2 and b.p_mfgr = a.p_mfgr
   )
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -1416,10 +1432,18 @@ PREHOOK: query: explain
 select * 
 from T1_v where T1_v.key not in (select T2_v.key from T2_v)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@src
+PREHOOK: Input: default@t1_v
+PREHOOK: Input: default@t2_v
+#### A masked pattern was here ####
 POSTHOOK: query: explain
 select * 
 from T1_v where T1_v.key not in (select T2_v.key from T2_v)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@src
+POSTHOOK: Input: default@t1_v
+POSTHOOK: Input: default@t2_v
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -1581,8 +1605,12 @@ POSTHOOK: Input: default@t2_v
 #### A masked pattern was here ####
 PREHOOK: query: explain select * from part where p_brand <> 'Brand#14' AND 
p_size NOT IN (select (p_size*p_size) from part p where p.p_type = part.p_type 
) AND p_size <> 340
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part where p_brand <> 'Brand#14' AND 
p_size NOT IN (select (p_size*p_size) from part p where p.p_type = part.p_type 
) AND p_size <> 340
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -1777,8 +1805,12 @@ POSTHOOK: Input: default@part
 Warning: Shuffle Join MERGEJOIN[38][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 2' is a cross product
 PREHOOK: query: explain select * from part  where (p_size-1) NOT IN (select 
min(p_size) from part group by p_type) order by p_partkey
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part  where (p_size-1) NOT IN (select 
min(p_size) from part group by p_type) order by p_partkey
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -1985,8 +2017,12 @@ POSTHOOK: Input: default@part
 Warning: Shuffle Join MERGEJOIN[36][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 2' is a cross product
 PREHOOK: query: explain select * from part where (p_partkey*p_size) NOT IN 
(select min(p_partkey) from part group by p_type)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part where (p_partkey*p_size) NOT IN 
(select min(p_partkey) from part group by p_type)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -2188,8 +2224,12 @@ POSTHOOK: Input: default@part
 191709 almond antique violet turquoise frosted Manufacturer#2  Brand#22        
ECONOMY POLISHED STEEL  40      MED BOX 1800.7   haggle
 PREHOOK: query: explain select count(*) as c from part as e where p_size + 100 
NOT IN (select p_partkey from part where p_name = e.p_name)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select count(*) as c from part as e where p_size + 
100 NOT IN (select p_partkey from part where p_name = e.p_name)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -2420,8 +2460,12 @@ POSTHOOK: Input: default@part
 Warning: Shuffle Join MERGEJOIN[35][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 2' is a cross product
 PREHOOK: query: explain select * from part  where floor(p_retailprice) NOT IN 
(select floor(min(p_retailprice)) from part group by p_type)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part  where floor(p_retailprice) NOT IN 
(select floor(min(p_retailprice)) from part group by p_type)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -2599,8 +2643,12 @@ POSTHOOK: Input: default@part
 192697 almond antique blue firebrick mint      Manufacturer#5  Brand#52        
MEDIUM BURNISHED TIN    31      LG DRUM 1789.69 ickly ir
 PREHOOK: query: explain select * from part where p_name NOT IN (select p_name 
from part p where p.p_size = part.p_size AND part.p_size + 121150 = p.p_partkey 
)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part where p_name NOT IN (select p_name 
from part p where p.p_size = part.p_size AND part.p_size + 121150 = p.p_partkey 
)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -2867,8 +2915,12 @@ POSTHOOK: Input: default@part
 78486  almond azure blanched chiffon midnight  Manufacturer#5  Brand#52        
LARGE BRUSHED BRASS     23      MED BAG 1464.48 hely blith
 PREHOOK: query: explain select * from part where p_name NOT IN (select p_name 
from part p where p.p_size = part.p_size AND part.p_partkey= p.p_partkey )
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part where p_name NOT IN (select p_name 
from part p where p.p_size = part.p_size AND part.p_partkey= p.p_partkey )
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -3028,8 +3080,12 @@ POSTHOOK: Input: default@part
 #### A masked pattern was here ####
 PREHOOK: query: explain select p_name from (select p_name, p_type, p_brand as 
brand from part) fpart where fpart.p_type NOT IN (select p_type+2 from part 
where part.p_brand = fpart.brand)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select p_name from (select p_name, p_type, p_brand as 
brand from part) fpart where fpart.p_type NOT IN (select p_type+2 from part 
where part.p_brand = fpart.brand)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -3197,8 +3253,12 @@ POSTHOOK: Input: default@part
 #### A masked pattern was here ####
 PREHOOK: query: explain select p_name from (select p_name, p_type, p_size+1 as 
size from part) fpart where fpart.p_type NOT IN (select p_type from part where 
(part.p_size+1) = fpart.size)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select p_name from (select p_name, p_type, p_size+1 
as size from part) fpart where fpart.p_type NOT IN (select p_type from part 
where (part.p_size+1) = fpart.size)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -3472,8 +3532,12 @@ almond antique olive coral navajo
 Warning: Shuffle Join MERGEJOIN[53][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 2' is a cross product
 PREHOOK: query: explain select key, count(*) from src where value NOT IN 
(select key from src) group by key having count(*) in (select count(*) from src 
s1 where s1.key = '90' group by s1.key )
 PREHOOK: type: QUERY
+PREHOOK: Input: default@src
+#### A masked pattern was here ####
 POSTHOOK: query: explain select key, count(*) from src where value NOT IN 
(select key from src) group by key having count(*) in (select count(*) from src 
s1 where s1.key = '90' group by s1.key )
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@src
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -3746,8 +3810,12 @@ POSTHOOK: Input: default@src
 327    3
 PREHOOK: query: explain select key, count(*) from src where value NOT IN 
(select concat('v', value) from src sc where sc.key = src.key ) group by key 
having count(*) in (select count(*) from src s1 where s1.key = '90' group by 
s1.key )
 PREHOOK: type: QUERY
+PREHOOK: Input: default@src
+#### A masked pattern was here ####
 POSTHOOK: query: explain select key, count(*) from src where value NOT IN 
(select concat('v', value) from src sc where sc.key = src.key ) group by key 
having count(*) in (select count(*) from src s1 where s1.key = '90' group by 
s1.key )
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@src
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -4038,8 +4106,12 @@ POSTHOOK: Input: default@src
 Warning: Shuffle Join MERGEJOIN[38][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 2' is a cross product
 PREHOOK: query: explain select * from part  where (p_size-1) NOT IN (select 
min(p_size) from part group by p_type) order by p_brand
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part  where (p_size-1) NOT IN (select 
min(p_size) from part group by p_type) order by p_brand
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -4246,8 +4318,12 @@ POSTHOOK: Input: default@part
 Warning: Shuffle Join MERGEJOIN[39][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 2' is a cross product
 PREHOOK: query: explain select * from part  where (p_size-1) NOT IN (select 
min(p_size) from part group by p_type) order by p_brand, p_partkey limit 4
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part  where (p_size-1) NOT IN (select 
min(p_size) from part group by p_type) order by p_brand, p_partkey limit 4
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -4446,8 +4522,14 @@ POSTHOOK: Input: default@part
 Warning: Shuffle Join MERGEJOIN[37][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 2' is a cross product
 PREHOOK: query: explain select * from src where key NOT IN (select p_name from 
part UNION ALL select p_brand from part)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+PREHOOK: Input: default@src
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from src where key NOT IN (select p_name 
from part UNION ALL select p_brand from part)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+POSTHOOK: Input: default@src
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -5160,8 +5242,12 @@ POSTHOOK: Input: default@src
 98     val_98
 PREHOOK: query: explain select count(*) as c from part as e where p_size + 100 
not in ( select p_type from part where p_brand = e.p_brand)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select count(*) as c from part as e where p_size + 
100 not in ( select p_type from part where p_brand = e.p_brand)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -5427,8 +5513,14 @@ POSTHOOK: Lineage: t2_n0.c1 SCRIPT []
 Warning: Shuffle Join MERGEJOIN[25][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 2' is a cross product
 PREHOOK: query: explain SELECT c1 FROM t1_n0 WHERE c1 NOT IN (SELECT c1 FROM 
t2_n0)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@t1_n0
+PREHOOK: Input: default@t2_n0
+#### A masked pattern was here ####
 POSTHOOK: query: explain SELECT c1 FROM t1_n0 WHERE c1 NOT IN (SELECT c1 FROM 
t2_n0)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@t1_n0
+POSTHOOK: Input: default@t2_n0
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -5581,8 +5673,14 @@ POSTHOOK: Input: default@t2_n0
 #### A masked pattern was here ####
 PREHOOK: query: explain SELECT c1 FROM t1_n0 WHERE c1 NOT IN (SELECT c1 FROM 
t2_n0 where t1_n0.c2=t2_n0.c1)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@t1_n0
+PREHOOK: Input: default@t2_n0
+#### A masked pattern was here ####
 POSTHOOK: query: explain SELECT c1 FROM t1_n0 WHERE c1 NOT IN (SELECT c1 FROM 
t2_n0 where t1_n0.c2=t2_n0.c1)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@t1_n0
+POSTHOOK: Input: default@t2_n0
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -5854,8 +5952,14 @@ POSTHOOK: Lineage: t2_n0.a SCRIPT []
 POSTHOOK: Lineage: t2_n0.b SCRIPT []
 PREHOOK: query: explain select t1_n0.a from t1_n0 where t1_n0.b NOT IN (select 
t2_n0.a from t2_n0 where t2_n0.b=t1_n0.a)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@t1_n0
+PREHOOK: Input: default@t2_n0
+#### A masked pattern was here ####
 POSTHOOK: query: explain select t1_n0.a from t1_n0 where t1_n0.b NOT IN 
(select t2_n0.a from t2_n0 where t2_n0.b=t1_n0.a)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@t1_n0
+POSTHOOK: Input: default@t2_n0
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -6069,8 +6173,14 @@ POSTHOOK: Lineage: fixob.i SCRIPT []
 POSTHOOK: Lineage: fixob.j SCRIPT []
 PREHOOK: query: explain select * from fixOb where j NOT IN (select i from t7 
where t7.j=fixOb.j)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@fixob
+PREHOOK: Input: default@t7
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from fixOb where j NOT IN (select i from t7 
where t7.j=fixOb.j)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@fixob
+POSTHOOK: Input: default@t7
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -6303,8 +6413,12 @@ POSTHOOK: Lineage: t_n0.i SCRIPT []
 POSTHOOK: Lineage: t_n0.j SCRIPT []
 PREHOOK: query: explain select t_n0.i from t_n0 where t_n0.j NOT IN (select 
t1_n0.i from t_n0 t1_n0 where t1_n0.j=t_n0.j)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@t_n0
+#### A masked pattern was here ####
 POSTHOOK: query: explain select t_n0.i from t_n0 where t_n0.j NOT IN (select 
t1_n0.i from t_n0 t1_n0 where t1_n0.j=t_n0.j)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@t_n0
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -6496,8 +6610,12 @@ POSTHOOK: Input: default@t_n0
 4
 PREHOOK: query: explain select t_n0.i from t_n0 where t_n0.i NOT IN (select 
t1_n0.i from t_n0 t1_n0 where t1_n0.j=t_n0.j)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@t_n0
+#### A masked pattern was here ####
 POSTHOOK: query: explain select t_n0.i from t_n0 where t_n0.i NOT IN (select 
t1_n0.i from t_n0 t1_n0 where t1_n0.j=t_n0.j)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@t_n0
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -6652,8 +6770,12 @@ POSTHOOK: Input: default@t_n0
 Warning: Shuffle Join MERGEJOIN[25][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 2' is a cross product
 PREHOOK: query: explain select t_n0.i from t_n0 where t_n0.j NOT IN (select 
t1_n0.i from t_n0 t1_n0 )
 PREHOOK: type: QUERY
+PREHOOK: Input: default@t_n0
+#### A masked pattern was here ####
 POSTHOOK: query: explain select t_n0.i from t_n0 where t_n0.j NOT IN (select 
t1_n0.i from t_n0 t1_n0 )
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@t_n0
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -6807,8 +6929,12 @@ POSTHOOK: Input: default@t_n0
 Warning: Shuffle Join MERGEJOIN[25][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 2' is a cross product
 PREHOOK: query: explain select t_n0.i from t_n0 where t_n0.i NOT IN (select 
t1_n0.i from t_n0 t1_n0 )
 PREHOOK: type: QUERY
+PREHOOK: Input: default@t_n0
+#### A masked pattern was here ####
 POSTHOOK: query: explain select t_n0.i from t_n0 where t_n0.i NOT IN (select 
t1_n0.i from t_n0 t1_n0 )
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@t_n0
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -6963,6 +7089,8 @@ where b.key not in
          where b.value > a.value and a.key > '9'
         )
 PREHOOK: type: QUERY
+PREHOOK: Input: default@src
+#### A masked pattern was here ####
 POSTHOOK: query: explain select *
 from src b
 where b.key not in
@@ -6971,6 +7099,8 @@ where b.key not in
          where b.value > a.value and a.key > '9'
         )
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@src
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1

http://git-wip-us.apache.org/repos/asf/hive/blob/b356aae0/ql/src/test/results/clientpositive/llap/subquery_null_agg.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/llap/subquery_null_agg.q.out 
b/ql/src/test/results/clientpositive/llap/subquery_null_agg.q.out
index 0363a73..044eb89 100644
--- a/ql/src/test/results/clientpositive/llap/subquery_null_agg.q.out
+++ b/ql/src/test/results/clientpositive/llap/subquery_null_agg.q.out
@@ -27,6 +27,8 @@ FROM table_7
 WHERE
 (t1.int_col) = (tt1.int_col))
 PREHOOK: type: QUERY
+PREHOOK: Input: default@table_7
+#### A masked pattern was here ####
 POSTHOOK: query: explain
 SELECT
 (t1.int_col) * (t1.int_col) AS int_col
@@ -46,6 +48,8 @@ FROM table_7
 WHERE
 (t1.int_col) = (tt1.int_col))
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@table_7
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1

http://git-wip-us.apache.org/repos/asf/hive/blob/b356aae0/ql/src/test/results/clientpositive/llap/subquery_scalar.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/llap/subquery_scalar.q.out 
b/ql/src/test/results/clientpositive/llap/subquery_scalar.q.out
index d0e517a..ca83ebf 100644
--- a/ql/src/test/results/clientpositive/llap/subquery_scalar.q.out
+++ b/ql/src/test/results/clientpositive/llap/subquery_scalar.q.out
@@ -82,8 +82,14 @@ POSTHOOK: Lineage: part_null_n0.p_type SCRIPT []
 Warning: Shuffle Join MERGEJOIN[13][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 2' is a cross product
 PREHOOK: query: explain select * from part where p_size > (select avg(p_size) 
from part_null_n0)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+PREHOOK: Input: default@part_null_n0
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part where p_size > (select avg(p_size) 
from part_null_n0)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+POSTHOOK: Input: default@part_null_n0
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -214,8 +220,14 @@ POSTHOOK: Input: default@tempty_n0
 Warning: Shuffle Join MERGEJOIN[18][tables = [$hdt$_0, $hdt$_1, $hdt$_2]] in 
Stage 'Reducer 2' is a cross product
 PREHOOK: query: explain select * from part where p_size > (select * from 
tempty_n0)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+PREHOOK: Input: default@tempty_n0
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part where p_size > (select * from 
tempty_n0)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+POSTHOOK: Input: default@tempty_n0
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -328,8 +340,14 @@ STAGE PLANS:
 Warning: Shuffle Join MERGEJOIN[24][tables = [$hdt$_0, $hdt$_1, $hdt$_2]] in 
Stage 'Reducer 2' is a cross product
 PREHOOK: query: explain select * from part where p_name = (select p_name from 
part_null_n0 where p_name is null)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+PREHOOK: Input: default@part_null_n0
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part where p_name = (select p_name from 
part_null_n0 where p_name is null)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+POSTHOOK: Input: default@part_null_n0
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -447,8 +465,14 @@ Warning: Shuffle Join MERGEJOIN[32][tables = [$hdt$_0, 
$hdt$_1]] in Stage 'Reduc
 Warning: Shuffle Join MERGEJOIN[33][tables = [$hdt$_0, $hdt$_1, $hdt$_2]] in 
Stage 'Reducer 3' is a cross product
 PREHOOK: query: explain select * from part where (select i from tnull_n0 limit 
1) is null
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+PREHOOK: Input: default@tnull_n0
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part where (select i from tnull_n0 
limit 1) is null
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+POSTHOOK: Input: default@tnull_n0
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -647,8 +671,14 @@ POSTHOOK: Input: default@tnull_n0
 Warning: Shuffle Join MERGEJOIN[15][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 2' is a cross product
 PREHOOK: query: explain select * from part where (select max(p_name) from 
part_null_n0) is not null
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+PREHOOK: Input: default@part_null_n0
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part where (select max(p_name) from 
part_null_n0) is not null
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+POSTHOOK: Input: default@part_null_n0
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -779,8 +809,12 @@ Warning: Shuffle Join MERGEJOIN[23][tables = [$hdt$_0, 
$hdt$_1]] in Stage 'Reduc
 Warning: Shuffle Join MERGEJOIN[24][tables = [$hdt$_0, $hdt$_1, $hdt$_2]] in 
Stage 'Reducer 3' is a cross product
 PREHOOK: query: explain select * from part where p_size between (select 
min(p_size) from part) and (select avg(p_size) from part)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part where p_size between (select 
min(p_size) from part) and (select avg(p_size) from part)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -945,10 +979,14 @@ PREHOOK: query: explain select p_mfgr, p_name, p_size 
from part
 where part.p_size > 
   (select first_value(p_size) over(partition by p_mfgr order by p_size) as fv 
from part order by fv limit 1)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select p_mfgr, p_name, p_size from part 
 where part.p_size > 
   (select first_value(p_size) over(partition by p_mfgr order by p_size) as fv 
from part order by fv limit 1)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -1176,8 +1214,12 @@ Manufacturer#5   almond azure blanched chiffon midnight  
23
 Warning: Shuffle Join MERGEJOIN[13][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 2' is a cross product
 PREHOOK: query: explain select * from part where (p_partkey*p_size) <> (select 
min(p_partkey) from part)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part where (p_partkey*p_size) <> 
(select min(p_partkey) from part)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -1305,8 +1347,12 @@ POSTHOOK: Input: default@part
 90681  almond antique chartreuse khaki white   Manufacturer#3  Brand#31        
MEDIUM BURNISHED TIN    17      SM CASE 1671.68 are slyly after the sl
 PREHOOK: query: explain select count(*) as c from part as e where p_size + 100 
< (select max(p_partkey) from part where p_name = e.p_name)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select count(*) as c from part as e where p_size + 
100 < (select max(p_partkey) from part where p_name = e.p_name)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -1438,8 +1484,12 @@ POSTHOOK: Input: default@part
 26
 PREHOOK: query: explain select count(*) as c from part as e where 100 < 
(select max(p_partkey) from part where p_name = e.p_name)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select count(*) as c from part as e where 100 < 
(select max(p_partkey) from part where p_name = e.p_name)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -1568,8 +1618,14 @@ POSTHOOK: Input: default@part
 26
 PREHOOK: query: explain select * from part where p_size > (select avg(p_size) 
from part_null_n0 where part_null_n0.p_type = part.p_type)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+PREHOOK: Input: default@part_null_n0
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part where p_size > (select avg(p_size) 
from part_null_n0 where part_null_n0.p_type = part.p_type)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+POSTHOOK: Input: default@part_null_n0
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -1688,8 +1744,14 @@ POSTHOOK: Input: default@part_null_n0
 Warning: Shuffle Join MERGEJOIN[27][tables = [$hdt$_0, $hdt$_1, $hdt$_2]] in 
Stage 'Reducer 3' is a cross product
 PREHOOK: query: explain select * from part where p_size BETWEEN (select 
min(p_size) from part_null_n0 where part_null_n0.p_type = part.p_type) AND 
(select max(p_size) from part_null_n0)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+PREHOOK: Input: default@part_null_n0
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part where p_size BETWEEN (select 
min(p_size) from part_null_n0 where part_null_n0.p_type = part.p_type) AND 
(select max(p_size) from part_null_n0)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+POSTHOOK: Input: default@part_null_n0
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -1882,8 +1944,14 @@ POSTHOOK: Input: default@part_null_n0
 Warning: Shuffle Join MERGEJOIN[30][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 3' is a cross product
 PREHOOK: query: explain select * from part where p_size >= (select min(p_size) 
from part_null_n0 where part_null_n0.p_type = part.p_type) AND p_retailprice <= 
(select max(p_retailprice) from part_null_n0)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+PREHOOK: Input: default@part_null_n0
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part where p_size >= (select 
min(p_size) from part_null_n0 where part_null_n0.p_type = part.p_type) AND 
p_retailprice <= (select max(p_retailprice) from part_null_n0)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+POSTHOOK: Input: default@part_null_n0
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -2082,8 +2150,12 @@ POSTHOOK: Input: default@part_null_n0
 Warning: Shuffle Join MERGEJOIN[27][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 2' is a cross product
 PREHOOK: query: explain select * from part where p_brand <> (select 
min(p_brand) from part ) AND p_size IN (select (p_size) from part p where 
p.p_type = part.p_type ) AND p_size <> 340
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part where p_brand <> (select 
min(p_brand) from part ) AND p_size IN (select (p_size) from part p where 
p.p_type = part.p_type ) AND p_size <> 340
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -2249,8 +2321,12 @@ POSTHOOK: Input: default@part
 90681  almond antique chartreuse khaki white   Manufacturer#3  Brand#31        
MEDIUM BURNISHED TIN    17      SM CASE 1671.68 are slyly after the sl
 PREHOOK: query: explain select * from part where p_size <> (select 
count(p_name) from part p where p.p_size = part.p_size AND part.p_partkey= 
p.p_partkey )
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part where p_size <> (select 
count(p_name) from part p where p.p_size = part.p_size AND part.p_partkey= 
p.p_partkey )
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -2389,8 +2465,12 @@ Warning: Shuffle Join MERGEJOIN[47][tables = [$hdt$_0, 
$hdt$_1]] in Stage 'Reduc
 Warning: Shuffle Join MERGEJOIN[48][tables = [$hdt$_0, $hdt$_1, $hdt$_2]] in 
Stage 'Reducer 4' is a cross product
 PREHOOK: query: explain select key, count(*) from src where value <> (select 
max(value) from src) group by key having count(*) > (select count(*) from src 
s1 where s1.key = '90' group by s1.key )
 PREHOOK: type: QUERY
+PREHOOK: Input: default@src
+#### A masked pattern was here ####
 POSTHOOK: query: explain select key, count(*) from src where value <> (select 
max(value) from src) group by key having count(*) > (select count(*) from src 
s1 where s1.key = '90' group by s1.key )
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@src
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -2638,8 +2718,12 @@ POSTHOOK: Input: default@src
 Warning: Shuffle Join MERGEJOIN[17][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 3' is a cross product
 PREHOOK: query: explain select sum(p_retailprice) from part group by p_type 
having sum(p_retailprice) > (select max(pp.p_retailprice) from part pp)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select sum(p_retailprice) from part group by p_type 
having sum(p_retailprice) > (select max(pp.p_retailprice) from part pp)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -2770,8 +2854,12 @@ POSTHOOK: Input: default@part
 Warning: Shuffle Join MERGEJOIN[76][tables = [$hdt$_0, $hdt$_1, $hdt$_2]] in 
Stage 'Reducer 2' is a cross product
 PREHOOK: query: explain select * from part where p_size > (select 
count(p_name) from part INTERSECT select count(p_brand) from part)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part where p_size > (select 
count(p_name) from part INTERSECT select count(p_brand) from part)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -3103,8 +3191,12 @@ POSTHOOK: Input: default@part
 86428  almond aquamarine burnished black steel Manufacturer#1  Brand#12        
STANDARD ANODIZED STEEL 28      WRAP BAG        1414.42 arefully 
 PREHOOK: query: explain select p_partkey from part where p_name like (select 
max(p.p_name) from part p left outer join part pp on p.p_type = pp.p_type where 
pp.p_size = part.p_size)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select p_partkey from part where p_name like (select 
max(p.p_name) from part p left outer join part pp on p.p_type = pp.p_type where 
pp.p_size = part.p_size)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -3282,8 +3374,14 @@ POSTHOOK: Input: default@part
 Warning: Shuffle Join MERGEJOIN[32][tables = [$hdt$_0, $hdt$_1, $hdt$_2]] in 
Stage 'Reducer 2' is a cross product
 PREHOOK: query: explain select * from part_null_n0 where p_name NOT LIKE 
(select min(p_name) from part_null_n0) AND p_brand NOT IN (select p_name from 
part)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+PREHOOK: Input: default@part_null_n0
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part_null_n0 where p_name NOT LIKE 
(select min(p_name) from part_null_n0) AND p_brand NOT IN (select p_name from 
part)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+POSTHOOK: Input: default@part_null_n0
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -3498,8 +3596,14 @@ POSTHOOK: Input: default@part_null_n0
 Warning: Shuffle Join MERGEJOIN[43][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 2' is a cross product
 PREHOOK: query: explain select * from part_null_n0 where p_brand NOT IN 
(select p_name from part) AND p_name NOT LIKE (select min(p_name) from 
part_null_n0 pp where part_null_n0.p_type = pp.p_type)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+PREHOOK: Input: default@part_null_n0
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part_null_n0 where p_brand NOT IN 
(select p_name from part) AND p_name NOT LIKE (select min(p_name) from 
part_null_n0 pp where part_null_n0.p_type = pp.p_type)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+POSTHOOK: Input: default@part_null_n0
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -3725,11 +3829,15 @@ from (select distinct l_partkey as p_partkey from 
lineitem) p join lineitem li o
 where li.l_linenumber = 1 and
 li.l_orderkey <> (select min(l_orderkey) from lineitem where l_shipmode = 
'AIR' and l_linenumber = li.l_linenumber)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@lineitem
+#### A masked pattern was here ####
 POSTHOOK: query: explain select p.p_partkey, li.l_suppkey 
 from (select distinct l_partkey as p_partkey from lineitem) p join lineitem li 
on p.p_partkey = li.l_partkey 
 where li.l_linenumber = 1 and
 li.l_orderkey <> (select min(l_orderkey) from lineitem where l_shipmode = 
'AIR' and l_linenumber = li.l_linenumber)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@lineitem
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -3932,11 +4040,15 @@ from (select distinct l_partkey as p_partkey from 
lineitem) p join lineitem li o
 where li.l_linenumber = 1 and
  li.l_orderkey <> (select min(l_orderkey) from lineitem where l_shipmode = 
'AIR' and l_linenumber = li.l_linenumber)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@lineitem
+#### A masked pattern was here ####
 POSTHOOK: query: explain select p.p_partkey, li.l_suppkey 
 from (select distinct l_partkey as p_partkey from lineitem) p join lineitem li 
on p.p_partkey = li.l_partkey 
 where li.l_linenumber = 1 and
  li.l_orderkey <> (select min(l_orderkey) from lineitem where l_shipmode = 
'AIR' and l_linenumber = li.l_linenumber)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@lineitem
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -4135,8 +4247,14 @@ POSTHOOK: Input: default@lineitem
 88362  871
 PREHOOK: query: explain select sum(l_extendedprice) from lineitem, part where 
p_partkey = l_partkey and l_quantity > (select avg(l_quantity) from lineitem 
where l_partkey = p_partkey)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@lineitem
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select sum(l_extendedprice) from lineitem, part where 
p_partkey = l_partkey and l_quantity > (select avg(l_quantity) from lineitem 
where l_partkey = p_partkey)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@lineitem
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -4293,8 +4411,14 @@ POSTHOOK: Input: default@part
 NULL
 PREHOOK: query: explain select * from part_null_n0 where p_name IN (select 
p_name from part where part.p_type = part_null_n0.p_type AND p_brand NOT LIKE 
(select min(p_brand) from part pp where part.p_type = pp.p_type))
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+PREHOOK: Input: default@part_null_n0
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part_null_n0 where p_name IN (select 
p_name from part where part.p_type = part_null_n0.p_type AND p_brand NOT LIKE 
(select min(p_brand) from part pp where part.p_type = pp.p_type))
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+POSTHOOK: Input: default@part_null_n0
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -4614,8 +4738,14 @@ POSTHOOK: Lineage: depts_n3.deptno SCRIPT []
 POSTHOOK: Lineage: depts_n3.name SCRIPT []
 PREHOOK: query: explain select * from emps_n4 where deptno <> (select 
count(deptno) from depts_n3 where depts_n3.name = emps_n4.name)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@depts_n3
+PREHOOK: Input: default@emps_n4
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from emps_n4 where deptno <> (select 
count(deptno) from depts_n3 where depts_n3.name = emps_n4.name)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@depts_n3
+POSTHOOK: Input: default@emps_n4
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -4736,8 +4866,14 @@ POSTHOOK: Input: default@emps_n4
 130    Alice   40      F       Vancouver       2       NULL    false   true    
2007-01-01
 PREHOOK: query: explain select * from emps_n4 where name > (select min(name) 
from depts_n3 where depts_n3.deptno=emps_n4.deptno)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@depts_n3
+PREHOOK: Input: default@emps_n4
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from emps_n4 where name > (select min(name) 
from depts_n3 where depts_n3.deptno=emps_n4.deptno)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@depts_n3
+POSTHOOK: Input: default@emps_n4
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -4855,8 +4991,14 @@ POSTHOOK: Input: default@emps_n4
 120    Wilma   20      F       NULL    1       5       NULL    true    
2005-09-07
 PREHOOK: query: explain select * from emps_n4 where deptno <> (select 
count(deptno) from depts_n3 where depts_n3.name = emps_n4.name) and empno > 
(select count(name) from depts_n3 where depts_n3.deptno = emps_n4.deptno)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@depts_n3
+PREHOOK: Input: default@emps_n4
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from emps_n4 where deptno <> (select 
count(deptno) from depts_n3 where depts_n3.name = emps_n4.name) and empno > 
(select count(name) from depts_n3 where depts_n3.deptno = emps_n4.deptno)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@depts_n3
+POSTHOOK: Input: default@emps_n4
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -5038,8 +5180,14 @@ POSTHOOK: Input: default@emps_n4
 Warning: Shuffle Join MERGEJOIN[30][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 3' is a cross product
 PREHOOK: query: explain select * from emps_n4 where deptno <> (select 
sum(deptno) from depts_n3 where depts_n3.name = emps_n4.name) and empno > 
(select count(name) from depts_n3)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@depts_n3
+PREHOOK: Input: default@emps_n4
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from emps_n4 where deptno <> (select 
sum(deptno) from depts_n3 where depts_n3.name = emps_n4.name) and empno > 
(select count(name) from depts_n3)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@depts_n3
+POSTHOOK: Input: default@emps_n4
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -5237,12 +5385,16 @@ from src
 group by key
 having count(*) > (select count(*) from src s1 where s1.key > '9' )
 PREHOOK: type: QUERY
+PREHOOK: Input: default@src
+#### A masked pattern was here ####
 POSTHOOK: query: explain
  select key, count(*)
 from src
 group by key
 having count(*) > (select count(*) from src s1 where s1.key > '9' )
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@src
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -5382,6 +5534,8 @@ where b.key in (select key from src where src.key > '8')
 group by key, value
 having count(*) > (select count(*) from src s1 where s1.key > '9' )
 PREHOOK: type: QUERY
+PREHOOK: Input: default@src
+#### A masked pattern was here ####
 POSTHOOK: query: explain
 select key, value, count(*)
 from src b
@@ -5389,6 +5543,8 @@ where b.key in (select key from src where src.key > '8')
 group by key, value
 having count(*) > (select count(*) from src s1 where s1.key > '9' )
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@src
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -5560,8 +5716,12 @@ POSTHOOK: Input: default@src
 Warning: Shuffle Join MERGEJOIN[27][tables = [$hdt$_0, $hdt$_1, $hdt$_2]] in 
Stage 'Reducer 2' is a cross product
 PREHOOK: query: explain  select * from part where p_size > (select max(p_size) 
from part group by p_type)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain  select * from part where p_size > (select 
max(p_size) from part group by p_type)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -5722,8 +5882,12 @@ STAGE PLANS:
 
 PREHOOK: query: explain  select * from part where p_size > (select max(p_size) 
from part p where p.p_type = part.p_type group by p_type)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain  select * from part where p_size > (select 
max(p_size) from part p where p.p_type = part.p_type group by p_type)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -5881,9 +6045,13 @@ Warning: Shuffle Join MERGEJOIN[27][tables = [$hdt$_1, 
$hdt$_2]] in Stage 'Reduc
 PREHOOK: query: explain select * from part where p_size <>
     (select count(p_size) from part pp where part.p_type <> pp.p_type)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part where p_size <>
     (select count(p_size) from part pp where part.p_type <> pp.p_type)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -6096,8 +6264,12 @@ POSTHOOK: Lineage: t_n11.j SCRIPT []
 Warning: Shuffle Join MERGEJOIN[27][tables = [$hdt$_1, $hdt$_2]] in Stage 
'Reducer 4' is a cross product
 PREHOOK: query: explain select * from t_n11 where 0 = (select count(*) from 
t_n11 tt_n11 where tt_n11.j <> t_n11.i)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@t_n11
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from t_n11 where 0 = (select count(*) from 
t_n11 tt_n11 where tt_n11.j <> t_n11.i)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@t_n11
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -6266,8 +6438,12 @@ POSTHOOK: Input: default@t_n11
 Warning: Shuffle Join MERGEJOIN[31][tables = [$hdt$_1, $hdt$_2]] in Stage 
'Reducer 3' is a cross product
 PREHOOK: query: explain select * from t_n11 where 0 = (select avg(tt_n11.i) 
from t_n11 tt_n11 where tt_n11.j <> t_n11.i)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@t_n11
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from t_n11 where 0 = (select avg(tt_n11.i) 
from t_n11 tt_n11 where tt_n11.j <> t_n11.i)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@t_n11
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -6436,8 +6612,14 @@ POSTHOOK: Output: database:default
 POSTHOOK: Output: default@tempty_n0
 PREHOOK: query: explain select * from t_n11 where 0 = (select count(*) from 
tempty_n0 tt_n11 where t_n11.i=tt_n11.i)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@t_n11
+PREHOOK: Input: default@tempty_n0
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from t_n11 where 0 = (select count(*) from 
tempty_n0 tt_n11 where t_n11.i=tt_n11.i)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@t_n11
+POSTHOOK: Input: default@tempty_n0
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -6555,8 +6737,14 @@ POSTHOOK: Input: default@tempty_n0
 3      1
 PREHOOK: query: explain select * from t_n11 where 0 = (select min(tt_n11.j) 
from tempty_n0 tt_n11 where t_n11.i=tt_n11.i)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@t_n11
+PREHOOK: Input: default@tempty_n0
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from t_n11 where 0 = (select min(tt_n11.j) 
from tempty_n0 tt_n11 where t_n11.i=tt_n11.i)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@t_n11
+POSTHOOK: Input: default@tempty_n0
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -6688,9 +6876,13 @@ Warning: Shuffle Join MERGEJOIN[18][tables = [$hdt$_0, 
$hdt$_1]] in Stage 'Reduc
 PREHOOK: query: explain select key, count(*) from src group by key having 
count(*) >
     (select count(*) from src s1 group by 4)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@src
+#### A masked pattern was here ####
 POSTHOOK: query: explain select key, count(*) from src group by key having 
count(*) >
     (select count(*) from src s1 group by 4)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@src
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -6813,9 +7005,13 @@ Warning: Shuffle Join MERGEJOIN[20][tables = [$hdt$_0, 
$hdt$_1]] in Stage 'Reduc
 PREHOOK: query: explain select key, count(*) from src group by key having 
count(*) >
     (select count(*) from src s1 where s1.key = '90' group by s1.key )
 PREHOOK: type: QUERY
+PREHOOK: Input: default@src
+#### A masked pattern was here ####
 POSTHOOK: query: explain select key, count(*) from src group by key having 
count(*) >
     (select count(*) from src s1 where s1.key = '90' group by s1.key )
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@src
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1

http://git-wip-us.apache.org/repos/asf/hive/blob/b356aae0/ql/src/test/results/clientpositive/llap/subquery_select.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/llap/subquery_select.q.out 
b/ql/src/test/results/clientpositive/llap/subquery_select.q.out
index 6ce1ea2..a4ceafe 100644
--- a/ql/src/test/results/clientpositive/llap/subquery_select.q.out
+++ b/ql/src/test/results/clientpositive/llap/subquery_select.q.out
@@ -3,10 +3,14 @@ PREHOOK: query: explain SELECT p_size, p_size IN (
         SELECT MAX(p_size) FROM part)
 FROM part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain SELECT p_size, p_size IN (
         SELECT MAX(p_size) FROM part)
 FROM part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -187,10 +191,14 @@ PREHOOK: query: EXPLAIN SELECT p_size, p_size IN (
         SELECT MAX(p_size) FROM part p where p.p_type = part.p_type)
 FROM part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: EXPLAIN SELECT p_size, p_size IN (
         SELECT MAX(p_size) FROM part p where p.p_type = part.p_type)
 FROM part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -385,10 +393,14 @@ PREHOOK: query: explain SELECT p_size, p_size NOT IN (
         SELECT MAX(p_size) FROM part)
 FROM part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain SELECT p_size, p_size NOT IN (
         SELECT MAX(p_size) FROM part)
 FROM part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -569,10 +581,14 @@ PREHOOK: query: EXPLAIN SELECT p_size, p_size NOT IN (
         SELECT MAX(p_size) FROM part p where p.p_type = part.p_type)
 FROM part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: EXPLAIN SELECT p_size, p_size NOT IN (
         SELECT MAX(p_size) FROM part p where p.p_type = part.p_type)
 FROM part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -832,9 +848,13 @@ Warning: Shuffle Join MERGEJOIN[14][tables = [$hdt$_0, 
$hdt$_1]] in Stage 'Reduc
 PREHOOK: query: explain SELECT p_size, EXISTS(SELECT p_size FROM part)
 FROM part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain SELECT p_size, EXISTS(SELECT p_size FROM part)
 FROM part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -963,9 +983,13 @@ POSTHOOK: Input: default@part
 PREHOOK: query: explain SELECT p_size, EXISTS(SELECT p_size FROM part pp where 
pp.p_type = part.p_type)
 FROM part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain SELECT p_size, EXISTS(SELECT p_size FROM part pp 
where pp.p_type = part.p_type)
 FROM part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -1103,9 +1127,13 @@ Warning: Shuffle Join MERGEJOIN[14][tables = [$hdt$_0, 
$hdt$_1]] in Stage 'Reduc
 PREHOOK: query: explain SELECT p_size, NOT EXISTS(SELECT p_size FROM part)
 FROM part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain SELECT p_size, NOT EXISTS(SELECT p_size FROM part)
 FROM part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -1234,9 +1262,13 @@ POSTHOOK: Input: default@part
 PREHOOK: query: explain SELECT p_size, NOT EXISTS(SELECT p_size FROM part pp 
where pp.p_type = part.p_type)
 FROM part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain SELECT p_size, NOT EXISTS(SELECT p_size FROM part pp 
where pp.p_type = part.p_type)
 FROM part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -1372,8 +1404,12 @@ POSTHOOK: Input: default@part
 45     false
 PREHOOK: query: explain select p_size, (select count(p_name) from part p where 
p.p_type = part.p_name) from part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select p_size, (select count(p_name) from part p 
where p.p_type = part.p_name) from part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -1510,8 +1546,12 @@ POSTHOOK: Input: default@part
 23     0
 PREHOOK: query: explain select p_size, (select max(p_name) from part p where 
p.p_type = part.p_name) from part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select p_size, (select max(p_name) from part p where 
p.p_type = part.p_name) from part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -1650,9 +1690,13 @@ Warning: Shuffle Join MERGEJOIN[13][tables = [$hdt$_0, 
$hdt$_1]] in Stage 'Reduc
 PREHOOK: query: explain SELECT p_size, (SELECT max(p_size) FROM part)
     FROM part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain SELECT p_size, (SELECT max(p_size) FROM part)
     FROM part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -1778,6 +1822,8 @@ where b.key in
          where b.value = a.value and a.key > '9'
         )
 PREHOOK: type: QUERY
+PREHOOK: Input: default@src
+#### A masked pattern was here ####
 POSTHOOK: query: explain
 select *
 from src b
@@ -1787,6 +1833,8 @@ where b.key in
          where b.value = a.value and a.key > '9'
         )
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@src
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -1948,6 +1996,8 @@ where b.key in
          where b.value = a.value and a.key > '9'
         )
 PREHOOK: type: QUERY
+PREHOOK: Input: default@src
+#### A masked pattern was here ####
 POSTHOOK: query: explain
 select *
 from src b
@@ -1957,6 +2007,8 @@ where b.key in
          where b.value = a.value and a.key > '9'
         )
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@src
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -2138,8 +2190,14 @@ POSTHOOK: Lineage: tnull_n3.i EXPRESSION []
 Warning: Shuffle Join MERGEJOIN[24][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 2' is a cross product
 PREHOOK: query: explain select p_size, p_size IN (select i from tnull_n3) from 
part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+PREHOOK: Input: default@tnull_n3
+#### A masked pattern was here ####
 POSTHOOK: query: explain select p_size, p_size IN (select i from tnull_n3) 
from part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+POSTHOOK: Input: default@tnull_n3
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -2324,8 +2382,14 @@ POSTHOOK: Output: default@tempty_n3
 Warning: Shuffle Join MERGEJOIN[13][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 2' is a cross product
 PREHOOK: query: explain select p_size, (select count(*) from tempty_n3) from 
part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+PREHOOK: Input: default@tempty_n3
+#### A masked pattern was here ####
 POSTHOOK: query: explain select p_size, (select count(*) from tempty_n3) from 
part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+POSTHOOK: Input: default@tempty_n3
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -2449,8 +2513,14 @@ POSTHOOK: Input: default@tempty_n3
 Warning: Shuffle Join MERGEJOIN[13][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 2' is a cross product
 PREHOOK: query: explain select p_size, (select max(i) from tempty_n3) from part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+PREHOOK: Input: default@tempty_n3
+#### A masked pattern was here ####
 POSTHOOK: query: explain select p_size, (select max(i) from tempty_n3) from 
part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+POSTHOOK: Input: default@tempty_n3
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -2592,9 +2662,13 @@ POSTHOOK: Output: default@tnull_n3
 PREHOOK: query: explain SELECT p_size, 1+(SELECT max(p_size) FROM part p
     WHERE p.p_type = part.p_type) from part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain SELECT p_size, 1+(SELECT max(p_size) FROM part p
     WHERE p.p_type = part.p_type) from part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -2727,9 +2801,13 @@ POSTHOOK: Input: default@part
 PREHOOK: query: explain SELECT p_size, (SELECT count(p_size) FROM part p
     WHERE p.p_type = part.p_type) IS NULL from part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain SELECT p_size, (SELECT count(p_size) FROM part p
     WHERE p.p_type = part.p_type) IS NULL from part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -2863,8 +2941,12 @@ Warning: Shuffle Join MERGEJOIN[31][tables = [$hdt$_0, 
$hdt$_1]] in Stage 'Reduc
 Warning: Shuffle Join MERGEJOIN[32][tables = [$hdt$_0, $hdt$_1, $hdt$_2]] in 
Stage 'Reducer 3' is a cross product
 PREHOOK: query: explain select p_type, (select p_size from part order by 
p_size limit 1) = 1 from part order by p_type
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select p_type, (select p_size from part order by 
p_size limit 1) = 1 from part order by p_type
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -3062,11 +3144,15 @@ PREHOOK: query: EXPLAIN SELECT p_size, p_size IN (
         p_name IN (SELECT min(p_name) from part)
 FROM part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: EXPLAIN SELECT p_size, p_size IN (
         SELECT MAX(p_size) FROM part p where p.p_type = part.p_type) AND
         p_name IN (SELECT min(p_name) from part)
 FROM part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -3342,9 +3428,13 @@ POSTHOOK: Input: default@part
 PREHOOK: query: explain SELECT p_size, NOT EXISTS(SELECT p_size FROM part pp 
where pp.p_type = part.p_type)
 FROM part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain SELECT p_size, NOT EXISTS(SELECT p_size FROM part pp 
where pp.p_type = part.p_type)
 FROM part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -3484,10 +3574,14 @@ PREHOOK: query: explain select p_size, (p_size IN
     (select (select max(p_size) from part) as sb from part order by sb limit 
1)) = true
    from part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select p_size, (p_size IN
     (select (select max(p_size) from part) as sb from part order by sb limit 
1)) = true
    from part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -3733,6 +3827,8 @@ PREHOOK: query: explain select case when (select count(*)
                   where p_partkey between 10000 and 20000) end sq
 from part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select case when (select count(*)
                   from part
                   where p_size between 1 and 20) > 409437
@@ -3744,6 +3840,8 @@ POSTHOOK: query: explain select case when (select count(*)
                   where p_partkey between 10000 and 20000) end sq
 from part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -3993,8 +4091,12 @@ POSTHOOK: Input: default@part
 Warning: Shuffle Join MERGEJOIN[17][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 3' is a cross product
 PREHOOK: query: explain select max(p_size) > ( select count(*)-1 from part) 
from part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select max(p_size) > ( select count(*)-1 from part) 
from part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -4118,9 +4220,13 @@ Warning: Shuffle Join MERGEJOIN[37][tables = [$hdt$_1, 
$hdt$_2]] in Stage 'Reduc
 PREHOOK: query: explain select o.p_size, (select count(distinct p_type) from 
part p where p.p_partkey = o.p_partkey) tmp
     FROM part o right join (select * from part where p_size > (select 
avg(p_size) from part)) t on t.p_partkey = o.p_partkey
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select o.p_size, (select count(distinct p_type) from 
part p where p.p_partkey = o.p_partkey) tmp
     FROM part o right join (select * from part where p_size > (select 
avg(p_size) from part)) t on t.p_partkey = o.p_partkey
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -4319,10 +4425,14 @@ PREHOOK: query: explain select (select max(p_size) from 
part), (select min(p_siz
     (select avg(p_size) from part), (select sum(p_size) from part)
      from part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select (select max(p_size) from part), (select 
min(p_size) from part),
     (select avg(p_size) from part), (select sum(p_size) from part)
      from part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -4574,10 +4684,14 @@ PREHOOK: query: explain select t1.p_size,
     (select count(*) from part p, part pp where p.p_size = pp.p_size and 
p.p_type = pp.p_type)
     from part t1
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select t1.p_size,
     (select count(*) from part p, part pp where p.p_size = pp.p_size and 
p.p_type = pp.p_type)
     from part t1
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -4747,12 +4861,16 @@ PREHOOK: query: explain select t1.p_size,
                                                                         group 
by a1.p_partkey) > 0)
     from part t1
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select t1.p_size,
     (select count(*) from part p, part pp where p.p_size = pp.p_size and 
p.p_type = pp.p_type
                                               and (select sum(p_size) from 
part a1 where a1.p_partkey = p.p_partkey
                                                                         group 
by a1.p_partkey) > 0)
     from part t1
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -5042,6 +5160,8 @@ PREHOOK: query: explain select t1.p_size,
                                                                         group 
by a1.p_partkey) > 0)
     from part t1
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select t1.p_size,
     (select count(*) from part t2 where t2.p_partkey = t1.p_partkey group by 
t2.p_partkey),
     (select count(*) from part p, part pp where p.p_size = pp.p_size and 
p.p_type = pp.p_type
@@ -5049,6 +5169,8 @@ POSTHOOK: query: explain select t1.p_size,
                                                                         group 
by a1.p_partkey) > 0)
     from part t1
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -5420,8 +5542,12 @@ POSTHOOK: Input: default@part
 18     1       28
 PREHOOK: query: explain SELECT p_size, exp((SELECT max(p_size) FROM part p 
WHERE p.p_type = part.p_type)) from part
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain SELECT p_size, exp((SELECT max(p_size) FROM part p 
WHERE p.p_type = part.p_type)) from part
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1

http://git-wip-us.apache.org/repos/asf/hive/blob/b356aae0/ql/src/test/results/clientpositive/llap/subquery_views.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/llap/subquery_views.q.out 
b/ql/src/test/results/clientpositive/llap/subquery_views.q.out
index 72dc0cd..d783333 100644
--- a/ql/src/test/results/clientpositive/llap/subquery_views.q.out
+++ b/ql/src/test/results/clientpositive/llap/subquery_views.q.out
@@ -89,10 +89,16 @@ PREHOOK: query: explain
 select * 
 from cv2 where cv2.key in (select key from cv2 c where c.key < '11')
 PREHOOK: type: QUERY
+PREHOOK: Input: default@cv2
+PREHOOK: Input: default@src
+#### A masked pattern was here ####
 POSTHOOK: query: explain
 select * 
 from cv2 where cv2.key in (select key from cv2 c where c.key < '11')
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@cv2
+POSTHOOK: Input: default@src
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1

http://git-wip-us.apache.org/repos/asf/hive/blob/b356aae0/ql/src/test/results/clientpositive/llap/sysdb.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/llap/sysdb.q.out 
b/ql/src/test/results/clientpositive/llap/sysdb.q.out
index 3dbe5ce..b62254a 100644
--- a/ql/src/test/results/clientpositive/llap/sysdb.q.out
+++ b/ql/src/test/results/clientpositive/llap/sysdb.q.out
@@ -3842,9 +3842,13 @@ POSTHOOK: Input: sys@role_map
 PREHOOK: query: explain vectorization detail
 select count(*) from sds
 PREHOOK: type: QUERY
+PREHOOK: Input: sys@sds
+#### A masked pattern was here ####
 POSTHOOK: query: explain vectorization detail
 select count(*) from sds
 POSTHOOK: type: QUERY
+POSTHOOK: Input: sys@sds
+#### A masked pattern was here ####
 PLAN VECTORIZATION:
   enabled: true
   enabledConditionsMet: [hive.vectorized.execution.enabled IS true]
@@ -4228,8 +4232,12 @@ num_falses               bigint                  from 
deserializer
 last_analyzed          bigint                  from deserializer   
 PREHOOK: query: explain select max(num_distincts) from sys.tab_col_stats
 PREHOOK: type: QUERY
+PREHOOK: Input: sys@tab_col_stats
+#### A masked pattern was here ####
 POSTHOOK: query: explain select max(num_distincts) from sys.tab_col_stats
 POSTHOOK: type: QUERY
+POSTHOOK: Input: sys@tab_col_stats
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1

http://git-wip-us.apache.org/repos/asf/hive/blob/b356aae0/ql/src/test/results/clientpositive/llap/temp_table.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/llap/temp_table.q.out 
b/ql/src/test/results/clientpositive/llap/temp_table.q.out
index 2542154..cc56941 100644
--- a/ql/src/test/results/clientpositive/llap/temp_table.q.out
+++ b/ql/src/test/results/clientpositive/llap/temp_table.q.out
@@ -1,7 +1,13 @@
 PREHOOK: query: EXPLAIN CREATE TEMPORARY TABLE foo AS SELECT * FROM src WHERE 
key % 2 = 0
 PREHOOK: type: CREATETABLE_AS_SELECT
+PREHOOK: Input: default@src
+PREHOOK: Output: database:default
+PREHOOK: Output: default@foo
 POSTHOOK: query: EXPLAIN CREATE TEMPORARY TABLE foo AS SELECT * FROM src WHERE 
key % 2 = 0
 POSTHOOK: type: CREATETABLE_AS_SELECT
+POSTHOOK: Input: default@src
+POSTHOOK: Output: database:default
+POSTHOOK: Output: default@foo
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-2 depends on stages: Stage-1
@@ -73,8 +79,14 @@ POSTHOOK: Output: database:default
 POSTHOOK: Output: default@foo
 PREHOOK: query: EXPLAIN CREATE TEMPORARY TABLE bar AS SELECT * FROM src WHERE 
key % 2 = 1
 PREHOOK: type: CREATETABLE_AS_SELECT
+PREHOOK: Input: default@src
+PREHOOK: Output: database:default
+PREHOOK: Output: default@bar
 POSTHOOK: query: EXPLAIN CREATE TEMPORARY TABLE bar AS SELECT * FROM src WHERE 
key % 2 = 1
 POSTHOOK: type: CREATETABLE_AS_SELECT
+POSTHOOK: Input: default@src
+POSTHOOK: Output: database:default
+POSTHOOK: Output: default@bar
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-2 depends on stages: Stage-1
@@ -188,8 +200,12 @@ Storage Desc Params:
        serialization.format    1                   
 PREHOOK: query: explain select * from foo order by key limit 10
 PREHOOK: type: QUERY
+PREHOOK: Input: default@foo
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from foo order by key limit 10
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@foo
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -263,8 +279,14 @@ POSTHOOK: Input: default@foo
 116    val_116
 PREHOOK: query: explain select * from (select * from foo union all select * 
from bar) u order by key limit 10
 PREHOOK: type: QUERY
+PREHOOK: Input: default@bar
+PREHOOK: Input: default@foo
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from (select * from foo union all select * 
from bar) u order by key limit 10
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@bar
+POSTHOOK: Input: default@foo
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1

http://git-wip-us.apache.org/repos/asf/hive/blob/b356aae0/ql/src/test/results/clientpositive/llap/tez_bmj_schema_evolution.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/llap/tez_bmj_schema_evolution.q.out 
b/ql/src/test/results/clientpositive/llap/tez_bmj_schema_evolution.q.out
index 5107fbe..2df2294 100644
--- a/ql/src/test/results/clientpositive/llap/tez_bmj_schema_evolution.q.out
+++ b/ql/src/test/results/clientpositive/llap/tez_bmj_schema_evolution.q.out
@@ -67,8 +67,18 @@ p                    int
 p                      int                                         
 PREHOOK: query: explain select test_n1.key, test_n1.value from test_n1 join 
test1 on (test_n1.key = test1.key) order by test_n1.key
 PREHOOK: type: QUERY
+PREHOOK: Input: default@test1
+PREHOOK: Input: default@test_n1
+PREHOOK: Input: default@test_n1@p=1
+PREHOOK: Input: default@test_n1@p=2
+#### A masked pattern was here ####
 POSTHOOK: query: explain select test_n1.key, test_n1.value from test_n1 join 
test1 on (test_n1.key = test1.key) order by test_n1.key
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@test1
+POSTHOOK: Input: default@test_n1
+POSTHOOK: Input: default@test_n1@p=1
+POSTHOOK: Input: default@test_n1@p=2
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1

http://git-wip-us.apache.org/repos/asf/hive/blob/b356aae0/ql/src/test/results/clientpositive/llap/tez_dml.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/llap/tez_dml.q.out 
b/ql/src/test/results/clientpositive/llap/tez_dml.q.out
index 993d57b..67d4bf3 100644
--- a/ql/src/test/results/clientpositive/llap/tez_dml.q.out
+++ b/ql/src/test/results/clientpositive/llap/tez_dml.q.out
@@ -1,7 +1,13 @@
 PREHOOK: query: EXPLAIN CREATE TABLE tmp_src AS SELECT * FROM (SELECT value, 
count(value) AS cnt FROM src GROUP BY value) f1 ORDER BY cnt
 PREHOOK: type: CREATETABLE_AS_SELECT
+PREHOOK: Input: default@src
+PREHOOK: Output: database:default
+PREHOOK: Output: default@tmp_src
 POSTHOOK: query: EXPLAIN CREATE TABLE tmp_src AS SELECT * FROM (SELECT value, 
count(value) AS cnt FROM src GROUP BY value) f1 ORDER BY cnt
 POSTHOOK: type: CREATETABLE_AS_SELECT
+POSTHOOK: Input: default@src
+POSTHOOK: Output: database:default
+POSTHOOK: Output: default@tmp_src
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-2 depends on stages: Stage-1
@@ -432,8 +438,11 @@ POSTHOOK: Output: database:default
 POSTHOOK: Output: default@tmp_src_part
 PREHOOK: query: EXPLAIN INSERT INTO TABLE tmp_src_part PARTITION (d) SELECT * 
FROM tmp_src
 PREHOOK: type: QUERY
+PREHOOK: Input: default@tmp_src
+PREHOOK: Output: default@tmp_src_part
 POSTHOOK: query: EXPLAIN INSERT INTO TABLE tmp_src_part PARTITION (d) SELECT * 
FROM tmp_src
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@tmp_src
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-2 depends on stages: Stage-1
@@ -892,11 +901,17 @@ FROM src
 INSERT INTO TABLE even SELECT key, value WHERE key % 2 = 0 
 INSERT INTO TABLE odd SELECT key, value WHERE key % 2 = 1
 PREHOOK: type: QUERY
+PREHOOK: Input: default@src
+PREHOOK: Output: default@even
+PREHOOK: Output: default@odd
 POSTHOOK: query: EXPLAIN
 FROM src
 INSERT INTO TABLE even SELECT key, value WHERE key % 2 = 0 
 INSERT INTO TABLE odd SELECT key, value WHERE key % 2 = 1
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@src
+POSTHOOK: Output: default@even
+POSTHOOK: Output: default@odd
 STAGE DEPENDENCIES:
   Stage-2 is a root stage
   Stage-3 depends on stages: Stage-2

http://git-wip-us.apache.org/repos/asf/hive/blob/b356aae0/ql/src/test/results/clientpositive/llap/tez_dynpart_hashjoin_1.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/llap/tez_dynpart_hashjoin_1.q.out 
b/ql/src/test/results/clientpositive/llap/tez_dynpart_hashjoin_1.q.out
index 56e3995..d029543 100644
--- a/ql/src/test/results/clientpositive/llap/tez_dynpart_hashjoin_1.q.out
+++ b/ql/src/test/results/clientpositive/llap/tez_dynpart_hashjoin_1.q.out
@@ -6,6 +6,8 @@ where
   a.cint between 1000000 and 3000000 and b.cbigint is not null
 order by a.cint
 PREHOOK: type: QUERY
+PREHOOK: Input: default@alltypesorc
+#### A masked pattern was here ####
 POSTHOOK: query: explain
 select
   *
@@ -14,6 +16,8 @@ where
   a.cint between 1000000 and 3000000 and b.cbigint is not null
 order by a.cint
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@alltypesorc
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -139,6 +143,8 @@ from alltypesorc a join alltypesorc b on a.cint = b.cint
 where
   a.cint between 1000000 and 3000000 and b.cbigint is not null
 PREHOOK: type: QUERY
+PREHOOK: Input: default@alltypesorc
+#### A masked pattern was here ####
 POSTHOOK: query: explain
 select
   count(*)
@@ -146,6 +152,8 @@ from alltypesorc a join alltypesorc b on a.cint = b.cint
 where
   a.cint between 1000000 and 3000000 and b.cbigint is not null
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@alltypesorc
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -264,6 +272,8 @@ where
 group by a.csmallint
 order by a.csmallint
 PREHOOK: type: QUERY
+PREHOOK: Input: default@alltypesorc
+#### A masked pattern was here ####
 POSTHOOK: query: explain
 select
   a.csmallint, count(*) c1
@@ -273,6 +283,8 @@ where
 group by a.csmallint
 order by a.csmallint
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@alltypesorc
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -417,6 +429,8 @@ where
   a.cint between 1000000 and 3000000 and b.cbigint is not null
 order by a.cint
 PREHOOK: type: QUERY
+PREHOOK: Input: default@alltypesorc
+#### A masked pattern was here ####
 POSTHOOK: query: explain
 select
   *
@@ -425,6 +439,8 @@ where
   a.cint between 1000000 and 3000000 and b.cbigint is not null
 order by a.cint
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@alltypesorc
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -553,6 +569,8 @@ from alltypesorc a join alltypesorc b on a.cint = b.cint
 where
   a.cint between 1000000 and 3000000 and b.cbigint is not null
 PREHOOK: type: QUERY
+PREHOOK: Input: default@alltypesorc
+#### A masked pattern was here ####
 POSTHOOK: query: explain
 select
   count(*)
@@ -560,6 +578,8 @@ from alltypesorc a join alltypesorc b on a.cint = b.cint
 where
   a.cint between 1000000 and 3000000 and b.cbigint is not null
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@alltypesorc
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -681,6 +701,8 @@ where
 group by a.csmallint
 order by cs
 PREHOOK: type: QUERY
+PREHOOK: Input: default@alltypesorc
+#### A masked pattern was here ####
 POSTHOOK: query: explain
 select
   a.csmallint cs, count(*) c1
@@ -690,6 +712,8 @@ where
 group by a.csmallint
 order by cs
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@alltypesorc
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1

http://git-wip-us.apache.org/repos/asf/hive/blob/b356aae0/ql/src/test/results/clientpositive/llap/tez_dynpart_hashjoin_2.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/llap/tez_dynpart_hashjoin_2.q.out 
b/ql/src/test/results/clientpositive/llap/tez_dynpart_hashjoin_2.q.out
index 171521d..23311b9 100644
--- a/ql/src/test/results/clientpositive/llap/tez_dynpart_hashjoin_2.q.out
+++ b/ql/src/test/results/clientpositive/llap/tez_dynpart_hashjoin_2.q.out
@@ -10,6 +10,9 @@ where
   and (a.csmallint < 100)
 order by a.csmallint, a.ctinyint, a.cint
 PREHOOK: type: QUERY
+PREHOOK: Input: default@alltypesorc
+PREHOOK: Input: default@src
+#### A masked pattern was here ####
 POSTHOOK: query: explain
 select
   a.*
@@ -22,6 +25,9 @@ where
   and (a.csmallint < 100)
 order by a.csmallint, a.ctinyint, a.cint
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@alltypesorc
+POSTHOOK: Input: default@src
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -201,6 +207,9 @@ where
   and (a.csmallint < 100)
 order by a.csmallint, a.ctinyint, a.cint
 PREHOOK: type: QUERY
+PREHOOK: Input: default@alltypesorc
+PREHOOK: Input: default@src
+#### A masked pattern was here ####
 POSTHOOK: query: explain
 select
   a.*
@@ -213,6 +222,9 @@ where
   and (a.csmallint < 100)
 order by a.csmallint, a.ctinyint, a.cint
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@alltypesorc
+POSTHOOK: Input: default@src
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -392,6 +404,9 @@ where
   and (a.csmallint < 100)
 order by a.csmallint, a.ctinyint, a.cint
 PREHOOK: type: QUERY
+PREHOOK: Input: default@alltypesorc
+PREHOOK: Input: default@src
+#### A masked pattern was here ####
 POSTHOOK: query: explain
 select
   a.*
@@ -404,6 +419,9 @@ where
   and (a.csmallint < 100)
 order by a.csmallint, a.ctinyint, a.cint
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@alltypesorc
+POSTHOOK: Input: default@src
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1

http://git-wip-us.apache.org/repos/asf/hive/blob/b356aae0/ql/src/test/results/clientpositive/llap/tez_dynpart_hashjoin_3.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/llap/tez_dynpart_hashjoin_3.q.out 
b/ql/src/test/results/clientpositive/llap/tez_dynpart_hashjoin_3.q.out
index 2a03d37..a5f3472 100644
--- a/ql/src/test/results/clientpositive/llap/tez_dynpart_hashjoin_3.q.out
+++ b/ql/src/test/results/clientpositive/llap/tez_dynpart_hashjoin_3.q.out
@@ -4,12 +4,18 @@ from alltypesorc a left outer join src b
 on a.cint = cast(b.key as int) and (a.cint < 100)
 limit 1
 PREHOOK: type: QUERY
+PREHOOK: Input: default@alltypesorc
+PREHOOK: Input: default@src
+#### A masked pattern was here ####
 POSTHOOK: query: explain
 select a.*
 from alltypesorc a left outer join src b
 on a.cint = cast(b.key as int) and (a.cint < 100)
 limit 1
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@alltypesorc
+POSTHOOK: Input: default@src
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -111,12 +117,18 @@ from alltypesorc a left outer join src b
 on a.cint = cast(b.key as int) and (a.cint < 100)
 limit 1
 PREHOOK: type: QUERY
+PREHOOK: Input: default@alltypesorc
+PREHOOK: Input: default@src
+#### A masked pattern was here ####
 POSTHOOK: query: explain
 select a.*
 from alltypesorc a left outer join src b
 on a.cint = cast(b.key as int) and (a.cint < 100)
 limit 1
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@alltypesorc
+POSTHOOK: Input: default@src
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1

http://git-wip-us.apache.org/repos/asf/hive/blob/b356aae0/ql/src/test/results/clientpositive/llap/tez_fixed_bucket_pruning.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/llap/tez_fixed_bucket_pruning.q.out 
b/ql/src/test/results/clientpositive/llap/tez_fixed_bucket_pruning.q.out
index 1b0b6fa..26f741e 100644
--- a/ql/src/test/results/clientpositive/llap/tez_fixed_bucket_pruning.q.out
+++ b/ql/src/test/results/clientpositive/llap/tez_fixed_bucket_pruning.q.out
@@ -439,6 +439,11 @@ where DW.PROJECT_OBJECT_ID =7147200
 order by DW.PROJECT_OBJECT_ID, PLAN_KEY, PROJECT_KEY
 limit 5
 PREHOOK: type: QUERY
+PREHOOK: Input: 
default@l3_clarity__l3_monthly_dw_factplan_datajoin_1_s2_2018022300104_1
+PREHOOK: Input: 
default@l3_clarity__l3_monthly_dw_factplan_dw_stg_2018022300104_1
+PREHOOK: Input: default@l3_clarity__l3_snap_number_2018022300104
+PREHOOK: Input: default@l3_monthly_dw_dimplan
+#### A masked pattern was here ####
 POSTHOOK: query: EXPLAIN EXTENDED
 SELECT DW.PROJECT_OBJECT_ID, S1.PLAN_KEY as PLAN_KEY, S2.PROJECT_KEY AS 
PROJECT_KEY
 FROM l3_clarity__L3_SNAP_NUMBER_2018022300104 snap inner join
@@ -453,6 +458,11 @@ where DW.PROJECT_OBJECT_ID =7147200
 order by DW.PROJECT_OBJECT_ID, PLAN_KEY, PROJECT_KEY
 limit 5
 POSTHOOK: type: QUERY
+POSTHOOK: Input: 
default@l3_clarity__l3_monthly_dw_factplan_datajoin_1_s2_2018022300104_1
+POSTHOOK: Input: 
default@l3_clarity__l3_monthly_dw_factplan_dw_stg_2018022300104_1
+POSTHOOK: Input: default@l3_clarity__l3_snap_number_2018022300104
+POSTHOOK: Input: default@l3_monthly_dw_dimplan
+#### A masked pattern was here ####
 OPTIMIZED SQL: SELECT CAST(7147200 AS BIGINT) AS `project_object_id`, 
`t9`.`plan_key`, `t9`.`project_key`
 FROM (SELECT `t4`.`plan_key`, `t6`.`project_key`
 FROM (SELECT `t3`.`l3_snapshot_number`, `t2`.`plan_detail_object_id`, 
`t2`.`project_object_id`, `t0`.`idp_data_date`, `t0`.`l3_snapshot_number` AS 
`l3_snapshot_number0`, `t0`.`plan_key`, `t0`.`finplan_detail_object_id`
@@ -946,6 +956,11 @@ where DW.PROJECT_OBJECT_ID =7147200
 order by DW.PROJECT_OBJECT_ID, PLAN_KEY, PROJECT_KEY
 limit 5
 PREHOOK: type: QUERY
+PREHOOK: Input: 
default@l3_clarity__l3_monthly_dw_factplan_datajoin_1_s2_2018022300104_1
+PREHOOK: Input: 
default@l3_clarity__l3_monthly_dw_factplan_dw_stg_2018022300104_1
+PREHOOK: Input: default@l3_clarity__l3_snap_number_2018022300104
+PREHOOK: Input: default@l3_monthly_dw_dimplan
+#### A masked pattern was here ####
 POSTHOOK: query: EXPLAIN EXTENDED
 SELECT DW.PROJECT_OBJECT_ID, S1.PLAN_KEY as PLAN_KEY, S2.PROJECT_KEY AS 
PROJECT_KEY
 FROM l3_clarity__L3_SNAP_NUMBER_2018022300104 snap inner join
@@ -960,6 +975,11 @@ where DW.PROJECT_OBJECT_ID =7147200
 order by DW.PROJECT_OBJECT_ID, PLAN_KEY, PROJECT_KEY
 limit 5
 POSTHOOK: type: QUERY
+POSTHOOK: Input: 
default@l3_clarity__l3_monthly_dw_factplan_datajoin_1_s2_2018022300104_1
+POSTHOOK: Input: 
default@l3_clarity__l3_monthly_dw_factplan_dw_stg_2018022300104_1
+POSTHOOK: Input: default@l3_clarity__l3_snap_number_2018022300104
+POSTHOOK: Input: default@l3_monthly_dw_dimplan
+#### A masked pattern was here ####
 OPTIMIZED SQL: SELECT CAST(7147200 AS BIGINT) AS `project_object_id`, 
`t9`.`plan_key`, `t9`.`project_key`
 FROM (SELECT `t4`.`plan_key`, `t6`.`project_key`
 FROM (SELECT `t3`.`l3_snapshot_number`, `t2`.`plan_detail_object_id`, 
`t2`.`project_object_id`, `t0`.`idp_data_date`, `t0`.`l3_snapshot_number` AS 
`l3_snapshot_number0`, `t0`.`plan_key`, `t0`.`finplan_detail_object_id`

Reply via email to