HIVE-11232 : CBO: Calcite Operator To Hive Operator (Calcite Return Path): fix the output of select_same_col.q (Pengcheng Xiong via Ashutosh Chauhan)
Signed-off-by: Ashutosh Chauhan <hashut...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/17f759d6 Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/17f759d6 Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/17f759d6 Branch: refs/heads/spark Commit: 17f759d6332f4f9fb87e4679c01447cd27370420 Parents: 8121b9a Author: Pengcheng Xiong <pxi...@hortonworks.com> Authored: Mon Jul 20 02:51:00 2015 -0700 Committer: Ashutosh Chauhan <hashut...@apache.org> Committed: Mon Jul 13 09:41:55 2015 -0700 ---------------------------------------------------------------------- ql/src/test/queries/clientpositive/select_same_col.q | 5 +++-- ql/src/test/results/clientpositive/select_same_col.q.out | 8 ++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/17f759d6/ql/src/test/queries/clientpositive/select_same_col.q ---------------------------------------------------------------------- diff --git a/ql/src/test/queries/clientpositive/select_same_col.q b/ql/src/test/queries/clientpositive/select_same_col.q index d6902c2..21f0d45 100644 --- a/ql/src/test/queries/clientpositive/select_same_col.q +++ b/ql/src/test/queries/clientpositive/select_same_col.q @@ -1,6 +1,7 @@ - set hive.cbo.enable=true; +-- SORT_BEFORE_DIFF + drop table srclimit; create table srclimit as select * from src limit 10; @@ -16,4 +17,4 @@ select *, key, value from srclimit; select * from (select *, key, value from srclimit) t; -drop table srclimit; \ No newline at end of file +drop table srclimit; http://git-wip-us.apache.org/repos/asf/hive/blob/17f759d6/ql/src/test/results/clientpositive/select_same_col.q.out ---------------------------------------------------------------------- diff --git a/ql/src/test/results/clientpositive/select_same_col.q.out b/ql/src/test/results/clientpositive/select_same_col.q.out index 426f716..f7362f0 100644 --- a/ql/src/test/results/clientpositive/select_same_col.q.out +++ b/ql/src/test/results/clientpositive/select_same_col.q.out @@ -1,6 +1,10 @@ -PREHOOK: query: drop table srclimit +PREHOOK: query: -- SORT_BEFORE_DIFF + +drop table srclimit PREHOOK: type: DROPTABLE -POSTHOOK: query: drop table srclimit +POSTHOOK: query: -- SORT_BEFORE_DIFF + +drop table srclimit POSTHOOK: type: DROPTABLE PREHOOK: query: create table srclimit as select * from src limit 10 PREHOOK: type: CREATETABLE_AS_SELECT