diff --git ql/src/test/queries/clientpositive/join_acid_non_acid.q ql/src/test/queries/clientpositive/join_acid_non_acid.q index 53b4b9e..449fb21 100644 --- ql/src/test/queries/clientpositive/join_acid_non_acid.q +++ ql/src/test/queries/clientpositive/join_acid_non_acid.q @@ -29,6 +29,9 @@ set hive.enforce.bucketing=true; set hive.auto.convert.join=false; set hive.input.format=org.apache.hadoop.hive.ql.io.CombineHiveInputFormat; -select t1.k1, t1.f1 from orc_table t1 +select a.k1, a.f1 from +( + select t1.k1, t1.f1 from orc_table t1 union all -select t2.k1, t2.f1 from orc_update_table t2; \ No newline at end of file + select t2.k1, t2.f1 from orc_update_table t2 +) a order by a.f1; \ No newline at end of file diff --git ql/src/test/results/clientpositive/llap/join_acid_non_acid.q.out ql/src/test/results/clientpositive/llap/join_acid_non_acid.q.out index efe7699..a63a9c2 100644 --- ql/src/test/results/clientpositive/llap/join_acid_non_acid.q.out +++ ql/src/test/results/clientpositive/llap/join_acid_non_acid.q.out @@ -56,19 +56,25 @@ POSTHOOK: Input: default@orc_table POSTHOOK: Input: default@orc_update_table #### A masked pattern was here #### 1 x 1 a I -PREHOOK: query: select t1.k1, t1.f1 from orc_table t1 +PREHOOK: query: select a.k1, a.f1 from +( + select t1.k1, t1.f1 from orc_table t1 union all -select t2.k1, t2.f1 from orc_update_table t2 + select t2.k1, t2.f1 from orc_update_table t2 +) a order by a.f1 PREHOOK: type: QUERY PREHOOK: Input: default@orc_table PREHOOK: Input: default@orc_update_table #### A masked pattern was here #### -POSTHOOK: query: select t1.k1, t1.f1 from orc_table t1 +POSTHOOK: query: select a.k1, a.f1 from +( + select t1.k1, t1.f1 from orc_table t1 union all -select t2.k1, t2.f1 from orc_update_table t2 + select t2.k1, t2.f1 from orc_update_table t2 +) a order by a.f1 POSTHOOK: type: QUERY POSTHOOK: Input: default@orc_table POSTHOOK: Input: default@orc_update_table #### A masked pattern was here #### -1 x 1 a +1 x