PREHOOK: query: create table tst(a int, b int) partitioned by (d string) PREHOOK: type: CREATETABLE POSTHOOK: query: create table tst(a int, b int) partitioned by (d string) POSTHOOK: type: CREATETABLE POSTHOOK: Output: default@tst PREHOOK: query: alter table tst add partition (d='2009-01-01') PREHOOK: type: ALTERTABLE_ADDPARTS PREHOOK: Input: default@tst POSTHOOK: query: alter table tst add partition (d='2009-01-01') POSTHOOK: type: ALTERTABLE_ADDPARTS POSTHOOK: Input: default@tst POSTHOOK: Output: default@tst@d=2009-01-01 PREHOOK: query: explain select count(1) from tst x where x.d='2009-01-01' PREHOOK: type: QUERY POSTHOOK: query: explain select count(1) from tst x where x.d='2009-01-01' POSTHOOK: type: QUERY ABSTRACT SYNTAX TREE: (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME tst) x)) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_FUNCTION count 1))) (TOK_WHERE (= (. (TOK_TABLE_OR_COL x) d) '2009-01-01')))) STAGE DEPENDENCIES: Stage-1 is a root stage Stage-0 is a root stage STAGE PLANS: Stage: Stage-1 Map Reduce Alias -> Map Operator Tree: x TableScan alias: x Select Operator Group By Operator aggregations: expr: count(1) bucketGroup: false mode: hash outputColumnNames: _col0 Reduce Output Operator sort order: tag: -1 value expressions: expr: _col0 type: bigint Reduce Operator Tree: Group By Operator aggregations: expr: count(VALUE._col0) bucketGroup: false mode: mergepartial outputColumnNames: _col0 Select Operator expressions: expr: _col0 type: bigint outputColumnNames: _col0 File Output Operator compressed: false GlobalTableId: 0 table: input format: org.apache.hadoop.mapred.TextInputFormat output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat Stage: Stage-0 Fetch Operator limit: -1 PREHOOK: query: select count(1) from tst x where x.d='2009-01-01' PREHOOK: type: QUERY PREHOOK: Input: default@tst PREHOOK: Input: default@tst@d=2009-01-01 #### A masked pattern was here #### POSTHOOK: query: select count(1) from tst x where x.d='2009-01-01' POSTHOOK: type: QUERY POSTHOOK: Input: default@tst POSTHOOK: Input: default@tst@d=2009-01-01 #### A masked pattern was here #### 0