diff --git a/ql/src/test/queries/clientpositive/union_null.q b/ql/src/test/queries/clientpositive/union_null.q index b184841..64e1672 100644 --- a/ql/src/test/queries/clientpositive/union_null.q +++ b/ql/src/test/queries/clientpositive/union_null.q @@ -1,7 +1,7 @@ -- SORT_BEFORE_DIFF -- HIVE-2901 -select x from (select value as x from src union all select NULL as x from src)a limit 10; +select x from (select value as x from src order by x limit 5 union all select NULL as x from src limit 5) a; -- HIVE-4837 select * from (select null as N from src1 group by key UNION ALL select null as N from src1 group by key ) a; diff --git a/ql/src/test/results/clientpositive/union_null.q.out b/ql/src/test/results/clientpositive/union_null.q.out index d803b76..e2897ff 100644 --- a/ql/src/test/results/clientpositive/union_null.q.out +++ b/ql/src/test/results/clientpositive/union_null.q.out @@ -1,26 +1,26 @@ PREHOOK: query: -- SORT_BEFORE_DIFF -- HIVE-2901 -select x from (select value as x from src union all select NULL as x from src)a limit 10 +select x from (select value as x from src order by x limit 5 union all select NULL as x from src limit 5) a PREHOOK: type: QUERY PREHOOK: Input: default@src #### A masked pattern was here #### POSTHOOK: query: -- SORT_BEFORE_DIFF -- HIVE-2901 -select x from (select value as x from src union all select NULL as x from src)a limit 10 +select x from (select value as x from src order by x limit 5 union all select NULL as x from src limit 5) a POSTHOOK: type: QUERY POSTHOOK: Input: default@src #### A masked pattern was here #### -val_238 +val_0 +val_0 +val_0 +val_10 +val_100 NULL -val_86 NULL -val_311 NULL -val_27 NULL -val_165 NULL PREHOOK: query: -- HIVE-4837 select * from (select null as N from src1 group by key UNION ALL select null as N from src1 group by key ) a