http://git-wip-us.apache.org/repos/asf/hive/blob/c39b5d1b/ql/src/test/results/clientpositive/llap/subquery_multi.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/llap/subquery_multi.q.out 
b/ql/src/test/results/clientpositive/llap/subquery_multi.q.out
index 5252684..cbd68bc 100644
--- a/ql/src/test/results/clientpositive/llap/subquery_multi.q.out
+++ b/ql/src/test/results/clientpositive/llap/subquery_multi.q.out
@@ -81,8 +81,12 @@ POSTHOOK: Lineage: part_null.p_size SCRIPT []
 POSTHOOK: Lineage: part_null.p_type SCRIPT []
 PREHOOK: query: explain select * from part_null where p_size IN (select p_size 
from part_null) AND p_brand IN (select p_brand from part_null)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part_null
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part_null where p_size IN (select 
p_size from part_null) AND p_brand IN (select p_brand from part_null)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part_null
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -254,8 +258,12 @@ POSTHOOK: Input: default@part_null
 Warning: Shuffle Join MERGEJOIN[41][tables = [$hdt$_0, $hdt$_1, $hdt$_2]] in 
Stage 'Reducer 3' is a cross product
 PREHOOK: query: explain select * from part_null where p_name IN (select p_name 
from part_null) AND p_brand NOT IN (select p_name from part_null)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part_null
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part_null where p_name IN (select 
p_name from part_null) AND p_brand NOT IN (select p_name from part_null)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part_null
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -455,8 +463,12 @@ POSTHOOK: Input: default@part_null
 Warning: Shuffle Join MERGEJOIN[41][tables = [$hdt$_0, $hdt$_1, $hdt$_2]] in 
Stage 'Reducer 3' is a cross product
 PREHOOK: query: explain select * from part_null where p_name IN (select p_name 
from part_null) AND p_brand NOT IN (select p_type from part_null)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part_null
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part_null where p_name IN (select 
p_name from part_null) AND p_brand NOT IN (select p_type from part_null)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part_null
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -689,8 +701,12 @@ POSTHOOK: Input: default@part_null
 Warning: Shuffle Join MERGEJOIN[42][tables = [$hdt$_0, $hdt$_1, $hdt$_2]] in 
Stage 'Reducer 3' is a cross product
 PREHOOK: query: explain select * from part_null where p_brand IN (select 
p_brand from part_null) AND p_brand NOT IN (select p_name from part_null)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part_null
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part_null where p_brand IN (select 
p_brand from part_null) AND p_brand NOT IN (select p_name from part_null)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part_null
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -900,8 +916,14 @@ POSTHOOK: Input: default@part_null
 Warning: Shuffle Join MERGEJOIN[41][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 2' is a cross product
 PREHOOK: query: explain select * from part_null where p_name NOT IN (select c 
from tempty) AND p_brand IN (select p_brand from part_null)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part_null
+PREHOOK: Input: default@tempty
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part_null where p_name NOT IN (select c 
from tempty) AND p_brand IN (select p_brand from part_null)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part_null
+POSTHOOK: Input: default@tempty
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -1127,8 +1149,14 @@ POSTHOOK: Input: default@tempty
 Warning: Shuffle Join MERGEJOIN[30][tables = [$hdt$_0, $hdt$_1, $hdt$_2]] in 
Stage 'Reducer 3' is a cross product
 PREHOOK: query: explain select * from part_null where p_name IN (select p_name 
from part_null) AND EXISTS (select c from tnull)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part_null
+PREHOOK: Input: default@tnull
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part_null where p_name IN (select 
p_name from part_null) AND EXISTS (select c from tnull)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part_null
+POSTHOOK: Input: default@tnull
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -1309,8 +1337,14 @@ POSTHOOK: Input: default@tnull
 Warning: Shuffle Join MERGEJOIN[30][tables = [$hdt$_0, $hdt$_1, $hdt$_2]] in 
Stage 'Reducer 3' is a cross product
 PREHOOK: query: explain select * from part_null where p_size IN (select p_size 
from part_null) AND EXISTS (select c from tempty)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part_null
+PREHOOK: Input: default@tempty
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part_null where p_size IN (select 
p_size from part_null) AND EXISTS (select c from tempty)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part_null
+POSTHOOK: Input: default@tempty
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -1465,8 +1499,14 @@ POSTHOOK: Input: default@tempty
 Warning: Shuffle Join MERGEJOIN[31][tables = [$hdt$_0, $hdt$_1, $hdt$_2]] in 
Stage 'Reducer 3' is a cross product
 PREHOOK: query: explain select * from part_null where p_name IN (select p_name 
from part_null) AND NOT EXISTS (select c from tempty)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part_null
+PREHOOK: Input: default@tempty
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part_null where p_name IN (select 
p_name from part_null) AND NOT EXISTS (select c from tempty)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part_null
+POSTHOOK: Input: default@tempty
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -1654,10 +1694,16 @@ PREHOOK: query: explain select * from part_null where 
p_name IN ( select p_name
         AND p_brand NOT IN (select p_container from part where part.p_type = 
part_null.p_type
                                 AND p_brand IN (select p_brand from part pp 
where part.p_type = pp.p_type))
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+PREHOOK: Input: default@part_null
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part_null where p_name IN ( select 
p_name from part where part.p_type = part_null.p_type)
         AND p_brand NOT IN (select p_container from part where part.p_type = 
part_null.p_type
                                 AND p_brand IN (select p_brand from part pp 
where part.p_type = pp.p_type))
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+POSTHOOK: Input: default@part_null
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -1967,8 +2013,14 @@ POSTHOOK: Input: default@part_null
 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_null where p_name IN ( select 
p_name from part) AND p_brand IN (select p_brand from part where part.p_type = 
part_null.p_type)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+PREHOOK: Input: default@part_null
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part_null where p_name IN ( select 
p_name from part) AND p_brand IN (select p_brand from part where part.p_type = 
part_null.p_type)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+POSTHOOK: Input: default@part_null
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -2140,8 +2192,14 @@ POSTHOOK: Input: default@part_null
 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_null where p_name IN ( select 
p_name from part where part.p_type = part_null.p_type AND 
part.p_container=part_null.p_container) AND p_brand NOT IN (select p_container 
from part where part.p_type = part_null.p_type AND p_brand IN (select p_brand 
from part pp where part.p_type = pp.p_type))
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+PREHOOK: Input: default@part_null
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part_null where p_name IN ( select 
p_name from part where part.p_type = part_null.p_type AND 
part.p_container=part_null.p_container) AND p_brand NOT IN (select p_container 
from part where part.p_type = part_null.p_type AND p_brand IN (select p_brand 
from part pp where part.p_type = pp.p_type))
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+POSTHOOK: Input: default@part_null
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -2447,8 +2505,14 @@ POSTHOOK: Input: default@part_null
 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_null where p_name IN (select p_name 
from part where part.p_type = part_null.p_type) AND p_brand NOT IN (select 
p_type from part where part.p_size = part_null.p_size)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+PREHOOK: Input: default@part_null
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part_null where p_name IN (select 
p_name from part where part.p_type = part_null.p_type) AND p_brand NOT IN 
(select p_type from part where part.p_size = part_null.p_size)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+POSTHOOK: Input: default@part_null
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -2681,8 +2745,14 @@ POSTHOOK: Input: default@part_null
 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_null where p_name IN (select p_name 
from part where part.p_type = part_null.p_type AND p_brand IN (select p_brand 
from part pp where part.p_type = pp.p_type))
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+PREHOOK: Input: default@part_null
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part_null where p_name IN (select 
p_name from part where part.p_type = part_null.p_type AND p_brand IN (select 
p_brand from part pp where part.p_type = pp.p_type))
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+POSTHOOK: Input: default@part_null
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -2852,11 +2922,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 in (select l_orderkey from lineitem where l_shipmode = 'AIR' 
and l_linenumber = li.l_linenumber AND l_quantity NOT IN (select 
avg(l_quantity) from lineitem))
 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 in (select l_orderkey from lineitem where l_shipmode = 'AIR' 
and l_linenumber = li.l_linenumber AND l_quantity NOT IN (select 
avg(l_quantity) from lineitem))
 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
@@ -3111,6 +3185,8 @@ where b.key in (select key from src where src.value = 
b.value)
 group by key, value
 having count(*) in (select count(*) from src s1 where s1.key > '9' and exists 
(select * from src s2 where s1.value = s2.value) group by s1.key )
 PREHOOK: type: QUERY
+PREHOOK: Input: default@src
+#### A masked pattern was here ####
 POSTHOOK: query: explain
 select key, value, count(*)
 from src b
@@ -3118,6 +3194,8 @@ where b.key in (select key from src where src.value = 
b.value)
 group by key, value
 having count(*) in (select count(*) from src s1 where s1.key > '9' and exists 
(select * from src s2 where s1.value = s2.value) 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
@@ -3651,8 +3729,12 @@ POSTHOOK: Input: default@src
 Warning: Shuffle Join MERGEJOIN[30][tables = [$hdt$_1, $hdt$_2]] in Stage 
'Reducer 4' is a cross product
 PREHOOK: query: explain select * from part where p_name IN (select p_name from 
part p where part.p_type <> '1')
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part where p_name IN (select p_name 
from part p where part.p_type <> '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
@@ -3831,8 +3913,14 @@ POSTHOOK: Lineage: tnull.i SCRIPT []
 Warning: Shuffle Join MERGEJOIN[25][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Reducer 2' is a cross product
 PREHOOK: query: explain select * from part where p_partkey = 3 OR p_size NOT 
IN (select i from tnull)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+PREHOOK: Input: default@tnull
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part where p_partkey = 3 OR p_size NOT 
IN (select i from tnull)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+POSTHOOK: Input: default@tnull
+#### A masked pattern was here ####
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -3990,11 +4078,15 @@ PREHOOK: query: explain select count(*)  from src
         or src.value is not null
         or exists(select key from src)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@src
+#### A masked pattern was here ####
 POSTHOOK: query: explain select count(*)  from src
     where src.key in (select key from src s1 where s1.key > '9')
         or src.value is not null
         or exists(select key from src)
 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
@@ -4221,11 +4313,17 @@ PREHOOK: query: explain select * from part ws1 where
                             and ws1.p_retailprice <> ws2.p_retailprice)
     and not exists(select * from part_null wr1 where ws1.p_type = wr1.p_name)
 PREHOOK: type: QUERY
+PREHOOK: Input: default@part
+PREHOOK: Input: default@part_null
+#### A masked pattern was here ####
 POSTHOOK: query: explain select * from part ws1 where
     exists (select * from part ws2 where ws1.p_type= ws2.p_type
                             and ws1.p_retailprice <> ws2.p_retailprice)
     and not exists(select * from part_null wr1 where ws1.p_type = wr1.p_name)
 POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part
+POSTHOOK: Input: default@part_null
+#### 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/c39b5d1b/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 8a5ccf5..3457d90 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
@@ -6285,8 +6395,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
@@ -6460,8 +6574,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
@@ -6616,8 +6734,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
@@ -6771,8 +6893,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
@@ -6927,6 +7053,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
@@ -6935,6 +7063,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/c39b5d1b/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/c39b5d1b/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 ed3c96f..cdcdf55 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/c39b5d1b/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 f21fd39..f6e764c 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/c39b5d1b/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 cde0413..db2263d 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/c39b5d1b/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 109fca6..e058145 100644
--- a/ql/src/test/results/clientpositive/llap/sysdb.q.out
+++ b/ql/src/test/results/clientpositive/llap/sysdb.q.out
@@ -3333,9 +3333,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]
@@ -3684,8 +3688,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

Reply via email to