HIVE-11838: Another positive test case for HIVE-11658 (Prasanth Jayachandran reviewed by Jason Dere)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/a12e5f5b Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/a12e5f5b Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/a12e5f5b Branch: refs/heads/beeline-cli Commit: a12e5f5bbc554b2b49d6aa726721aaba9c299409 Parents: 7201c26 Author: Prasanth Jayachandran <[email protected]> Authored: Thu Sep 17 13:36:25 2015 -0500 Committer: Prasanth Jayachandran <[email protected]> Committed: Thu Sep 17 13:36:25 2015 -0500 ---------------------------------------------------------------------- .../test/queries/clientpositive/load_orc_part.q | 5 ++++ .../results/clientpositive/load_orc_part.q.out | 26 ++++++++++++++++++++ 2 files changed, 31 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/a12e5f5b/ql/src/test/queries/clientpositive/load_orc_part.q ---------------------------------------------------------------------- diff --git a/ql/src/test/queries/clientpositive/load_orc_part.q b/ql/src/test/queries/clientpositive/load_orc_part.q index 2ff884d..2902c72 100644 --- a/ql/src/test/queries/clientpositive/load_orc_part.q +++ b/ql/src/test/queries/clientpositive/load_orc_part.q @@ -17,3 +17,8 @@ alter table orc_test add partition(ds='11'); alter table orc_test partition(ds='11') set fileformat textfile; load data local inpath '../../data/files/kv1.txt' into table orc_test partition(ds='11'); dfs -ls ${hiveconf:hive.metastore.warehouse.dir}/orc_test/ds=11/; + +alter table orc_test add partition(ds='12'); +alter table orc_test partition(ds='12') set fileformat textfile; +load data local inpath '../../data/files/types/primitives' into table orc_test partition(ds='12'); +dfs -ls ${hiveconf:hive.metastore.warehouse.dir}/orc_test/ds=12/; http://git-wip-us.apache.org/repos/asf/hive/blob/a12e5f5b/ql/src/test/results/clientpositive/load_orc_part.q.out ---------------------------------------------------------------------- diff --git a/ql/src/test/results/clientpositive/load_orc_part.q.out b/ql/src/test/results/clientpositive/load_orc_part.q.out index 2e02c2e..16346cd 100644 --- a/ql/src/test/results/clientpositive/load_orc_part.q.out +++ b/ql/src/test/results/clientpositive/load_orc_part.q.out @@ -86,3 +86,29 @@ POSTHOOK: type: LOAD POSTHOOK: Output: default@orc_test@ds=11 Found 1 items #### A masked pattern was here #### +PREHOOK: query: alter table orc_test add partition(ds='12') +PREHOOK: type: ALTERTABLE_ADDPARTS +PREHOOK: Output: default@orc_test +POSTHOOK: query: alter table orc_test add partition(ds='12') +POSTHOOK: type: ALTERTABLE_ADDPARTS +POSTHOOK: Output: default@orc_test +POSTHOOK: Output: default@orc_test@ds=12 +PREHOOK: query: alter table orc_test partition(ds='12') set fileformat textfile +PREHOOK: type: ALTERPARTITION_FILEFORMAT +PREHOOK: Input: default@orc_test +PREHOOK: Output: default@orc_test@ds=12 +POSTHOOK: query: alter table orc_test partition(ds='12') set fileformat textfile +POSTHOOK: type: ALTERPARTITION_FILEFORMAT +POSTHOOK: Input: default@orc_test +POSTHOOK: Input: default@orc_test@ds=12 +POSTHOOK: Output: default@orc_test@ds=12 +PREHOOK: query: load data local inpath '../../data/files/types/primitives' into table orc_test partition(ds='12') +PREHOOK: type: LOAD +#### A masked pattern was here #### +PREHOOK: Output: default@orc_test@ds=12 +POSTHOOK: query: load data local inpath '../../data/files/types/primitives' into table orc_test partition(ds='12') +POSTHOOK: type: LOAD +#### A masked pattern was here #### +POSTHOOK: Output: default@orc_test@ds=12 +Found 4 items +#### A masked pattern was here ####
