PREHOOK: query: CREATE TABLE npe_test (key STRING, value STRING) PARTITIONED BY (ds STRING) PREHOOK: type: CREATETABLE POSTHOOK: query: CREATE TABLE npe_test (key STRING, value STRING) PARTITIONED BY (ds STRING) POSTHOOK: type: CREATETABLE POSTHOOK: Output: default@npe_test PREHOOK: query: INSERT OVERWRITE TABLE npe_test PARTITION(ds='2012-12-11') SELECT src.key, src.value FROM src WHERE key < '200' PREHOOK: type: QUERY PREHOOK: Input: default@src PREHOOK: Output: default@npe_test@ds=2012-12-11 POSTHOOK: query: INSERT OVERWRITE TABLE npe_test PARTITION(ds='2012-12-11') SELECT src.key, src.value FROM src WHERE key < '200' POSTHOOK: type: QUERY POSTHOOK: Input: default@src POSTHOOK: Output: default@npe_test@ds=2012-12-11 POSTHOOK: Lineage: npe_test PARTITION(ds=2012-12-11).key SIMPLE [(src)src.FieldSchema(name:key, type:string, comment:default), ] POSTHOOK: Lineage: npe_test PARTITION(ds=2012-12-11).value SIMPLE [(src)src.FieldSchema(name:value, type:string, comment:default), ] PREHOOK: query: INSERT OVERWRITE TABLE npe_test PARTITION(ds='2012-12-12') SELECT src.key, src.value FROM src WHERE key > '200' PREHOOK: type: QUERY PREHOOK: Input: default@src PREHOOK: Output: default@npe_test@ds=2012-12-12 POSTHOOK: query: INSERT OVERWRITE TABLE npe_test PARTITION(ds='2012-12-12') SELECT src.key, src.value FROM src WHERE key > '200' POSTHOOK: type: QUERY POSTHOOK: Input: default@src POSTHOOK: Output: default@npe_test@ds=2012-12-12 POSTHOOK: Lineage: npe_test PARTITION(ds=2012-12-11).key SIMPLE [(src)src.FieldSchema(name:key, type:string, comment:default), ] POSTHOOK: Lineage: npe_test PARTITION(ds=2012-12-11).value SIMPLE [(src)src.FieldSchema(name:value, type:string, comment:default), ] POSTHOOK: Lineage: npe_test PARTITION(ds=2012-12-12).key SIMPLE [(src)src.FieldSchema(name:key, type:string, comment:default), ] POSTHOOK: Lineage: npe_test PARTITION(ds=2012-12-12).value SIMPLE [(src)src.FieldSchema(name:value, type:string, comment:default), ] PREHOOK: query: SELECT count(*) FROM npe_test PREHOOK: type: QUERY PREHOOK: Input: default@npe_test PREHOOK: Input: default@npe_test@ds=2012-12-11 PREHOOK: Input: default@npe_test@ds=2012-12-12 #### A masked pattern was here #### POSTHOOK: query: SELECT count(*) FROM npe_test POSTHOOK: type: QUERY POSTHOOK: Input: default@npe_test POSTHOOK: Input: default@npe_test@ds=2012-12-11 POSTHOOK: Input: default@npe_test@ds=2012-12-12 #### A masked pattern was here #### POSTHOOK: Lineage: npe_test PARTITION(ds=2012-12-11).key SIMPLE [(src)src.FieldSchema(name:key, type:string, comment:default), ] POSTHOOK: Lineage: npe_test PARTITION(ds=2012-12-11).value SIMPLE [(src)src.FieldSchema(name:value, type:string, comment:default), ] POSTHOOK: Lineage: npe_test PARTITION(ds=2012-12-12).key SIMPLE [(src)src.FieldSchema(name:key, type:string, comment:default), ] POSTHOOK: Lineage: npe_test PARTITION(ds=2012-12-12).value SIMPLE [(src)src.FieldSchema(name:value, type:string, comment:default), ] 498 PREHOOK: query: EXPLAIN SELECT * FROM npe_test WHERE ds > 2012-11-31 AND ds < 2012-12-15 PREHOOK: type: QUERY POSTHOOK: query: EXPLAIN SELECT * FROM npe_test WHERE ds > 2012-11-31 AND ds < 2012-12-15 POSTHOOK: type: QUERY POSTHOOK: Lineage: npe_test PARTITION(ds=2012-12-11).key SIMPLE [(src)src.FieldSchema(name:key, type:string, comment:default), ] POSTHOOK: Lineage: npe_test PARTITION(ds=2012-12-11).value SIMPLE [(src)src.FieldSchema(name:value, type:string, comment:default), ] POSTHOOK: Lineage: npe_test PARTITION(ds=2012-12-12).key SIMPLE [(src)src.FieldSchema(name:key, type:string, comment:default), ] POSTHOOK: Lineage: npe_test PARTITION(ds=2012-12-12).value SIMPLE [(src)src.FieldSchema(name:value, type:string, comment:default), ] ABSTRACT SYNTAX TREE: (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME npe_test))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR TOK_ALLCOLREF)) (TOK_WHERE (AND (> (TOK_TABLE_OR_COL ds) (- (- 2012 11) 31)) (< (TOK_TABLE_OR_COL ds) (- (- 2012 12) 15)))))) 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: npe_test TableScan alias: npe_test Filter Operator predicate: expr: ((ds > ((2012 - 11) - 31)) and (ds < ((2012 - 12) - 15))) type: boolean Select Operator expressions: expr: key type: string expr: value type: string expr: ds type: string outputColumnNames: _col0, _col1, _col2 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(*) FROM npe_test WHERE ds > 2012-11-31 AND ds < 2012-12-15 PREHOOK: type: QUERY PREHOOK: Input: default@npe_test PREHOOK: Input: default@npe_test@ds=2012-12-11 PREHOOK: Input: default@npe_test@ds=2012-12-12 #### A masked pattern was here #### POSTHOOK: query: SELECT count(*) FROM npe_test WHERE ds > 2012-11-31 AND ds < 2012-12-15 POSTHOOK: type: QUERY POSTHOOK: Input: default@npe_test POSTHOOK: Input: default@npe_test@ds=2012-12-11 POSTHOOK: Input: default@npe_test@ds=2012-12-12 #### A masked pattern was here #### POSTHOOK: Lineage: npe_test PARTITION(ds=2012-12-11).key SIMPLE [(src)src.FieldSchema(name:key, type:string, comment:default), ] POSTHOOK: Lineage: npe_test PARTITION(ds=2012-12-11).value SIMPLE [(src)src.FieldSchema(name:value, type:string, comment:default), ] POSTHOOK: Lineage: npe_test PARTITION(ds=2012-12-12).key SIMPLE [(src)src.FieldSchema(name:key, type:string, comment:default), ] POSTHOOK: Lineage: npe_test PARTITION(ds=2012-12-12).value SIMPLE [(src)src.FieldSchema(name:value, type:string, comment:default), ] 0 PREHOOK: query: DROP TABLE npe_test PREHOOK: type: DROPTABLE PREHOOK: Input: default@npe_test PREHOOK: Output: default@npe_test POSTHOOK: query: DROP TABLE npe_test POSTHOOK: type: DROPTABLE POSTHOOK: Input: default@npe_test POSTHOOK: Output: default@npe_test POSTHOOK: Lineage: npe_test PARTITION(ds=2012-12-11).key SIMPLE [(src)src.FieldSchema(name:key, type:string, comment:default), ] POSTHOOK: Lineage: npe_test PARTITION(ds=2012-12-11).value SIMPLE [(src)src.FieldSchema(name:value, type:string, comment:default), ] POSTHOOK: Lineage: npe_test PARTITION(ds=2012-12-12).key SIMPLE [(src)src.FieldSchema(name:key, type:string, comment:default), ] POSTHOOK: Lineage: npe_test PARTITION(ds=2012-12-12).value SIMPLE [(src)src.FieldSchema(name:value, type:string, comment:default), ]