PREHOOK: query: EXPLAIN SELECT DATEDIFF('2008-12-31', '2009-01-01'), DATEDIFF('2008-03-01', '2008-02-28'), DATEDIFF('2007-03-01', '2007-01-28'), DATEDIFF('2008-03-01 23:59:59', '2008-03-02 00:00:00'), DATE_ADD('2008-12-31', 1), DATE_ADD('2008-12-31', 365), DATE_ADD('2008-02-28', 2), DATE_ADD('2009-02-28', 2), DATE_ADD('2007-02-28', 365), DATE_ADD('2007-02-28 23:59:59', 730), DATE_SUB('2009-01-01', 1), DATE_SUB('2009-01-01', 365), DATE_SUB('2008-02-28', 2), DATE_SUB('2009-02-28', 2), DATE_SUB('2007-02-28', 365), DATE_SUB('2007-02-28 01:12:34', 730) FROM src WHERE src.key = 86 PREHOOK: type: QUERY POSTHOOK: query: EXPLAIN SELECT DATEDIFF('2008-12-31', '2009-01-01'), DATEDIFF('2008-03-01', '2008-02-28'), DATEDIFF('2007-03-01', '2007-01-28'), DATEDIFF('2008-03-01 23:59:59', '2008-03-02 00:00:00'), DATE_ADD('2008-12-31', 1), DATE_ADD('2008-12-31', 365), DATE_ADD('2008-02-28', 2), DATE_ADD('2009-02-28', 2), DATE_ADD('2007-02-28', 365), DATE_ADD('2007-02-28 23:59:59', 730), DATE_SUB('2009-01-01', 1), DATE_SUB('2009-01-01', 365), DATE_SUB('2008-02-28', 2), DATE_SUB('2009-02-28', 2), DATE_SUB('2007-02-28', 365), DATE_SUB('2007-02-28 01:12:34', 730) FROM src WHERE src.key = 86 POSTHOOK: type: QUERY ABSTRACT SYNTAX TREE: (TOK_QUERY (TOK_FROM (TOK_TABREF (TOK_TABNAME src))) (TOK_INSERT (TOK_DESTINATION (TOK_DIR TOK_TMP_FILE)) (TOK_SELECT (TOK_SELEXPR (TOK_FUNCTION DATEDIFF '2008-12-31' '2009-01-01')) (TOK_SELEXPR (TOK_FUNCTION DATEDIFF '2008-03-01' '2008-02-28')) (TOK_SELEXPR (TOK_FUNCTION DATEDIFF '2007-03-01' '2007-01-28')) (TOK_SELEXPR (TOK_FUNCTION DATEDIFF '2008-03-01 23:59:59' '2008-03-02 00:00:00')) (TOK_SELEXPR (TOK_FUNCTION DATE_ADD '2008-12-31' 1)) (TOK_SELEXPR (TOK_FUNCTION DATE_ADD '2008-12-31' 365)) (TOK_SELEXPR (TOK_FUNCTION DATE_ADD '2008-02-28' 2)) (TOK_SELEXPR (TOK_FUNCTION DATE_ADD '2009-02-28' 2)) (TOK_SELEXPR (TOK_FUNCTION DATE_ADD '2007-02-28' 365)) (TOK_SELEXPR (TOK_FUNCTION DATE_ADD '2007-02-28 23:59:59' 730)) (TOK_SELEXPR (TOK_FUNCTION DATE_SUB '2009-01-01' 1)) (TOK_SELEXPR (TOK_FUNCTION DATE_SUB '2009-01-01' 365)) (TOK_SELEXPR (TOK_FUNCTION DATE_SUB '2008-02-28' 2)) (TOK_SELEXPR (TOK_FUNCTION DATE_SUB '2009-02-28' 2)) (TOK_SELEXPR (TOK_FUNCTION DATE_SUB '2007-02-28' 365)) (TOK_SELEXPR (TOK_FUNCTION DATE_SUB '2007-02-28 01:12:34' 730))) (TOK_WHERE (= (. (TOK_TABLE_OR_COL src) key) 86)))) 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: src TableScan alias: src Filter Operator predicate: expr: (key = 86) type: boolean Select Operator expressions: expr: datediff('2008-12-31', '2009-01-01') type: int expr: datediff('2008-03-01', '2008-02-28') type: int expr: datediff('2007-03-01', '2007-01-28') type: int expr: datediff('2008-03-01 23:59:59', '2008-03-02 00:00:00') type: int expr: date_add('2008-12-31', 1) type: string expr: date_add('2008-12-31', 365) type: string expr: date_add('2008-02-28', 2) type: string expr: date_add('2009-02-28', 2) type: string expr: date_add('2007-02-28', 365) type: string expr: date_add('2007-02-28 23:59:59', 730) type: string expr: date_sub('2009-01-01', 1) type: string expr: date_sub('2009-01-01', 365) type: string expr: date_sub('2008-02-28', 2) type: string expr: date_sub('2009-02-28', 2) type: string expr: date_sub('2007-02-28', 365) type: string expr: date_sub('2007-02-28 01:12:34', 730) type: string outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15 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 DATEDIFF('2008-12-31', '2009-01-01'), DATEDIFF('2008-03-01', '2008-02-28'), DATEDIFF('2007-03-01', '2007-01-28'), DATEDIFF('2008-03-01 23:59:59', '2008-03-02 00:00:00'), DATE_ADD('2008-12-31', 1), DATE_ADD('2008-12-31', 365), DATE_ADD('2008-02-28', 2), DATE_ADD('2009-02-28', 2), DATE_ADD('2007-02-28', 365), DATE_ADD('2007-02-28 23:59:59', 730), DATE_SUB('2009-01-01', 1), DATE_SUB('2009-01-01', 365), DATE_SUB('2008-03-01', 2), DATE_SUB('2009-03-01', 2), DATE_SUB('2007-02-28', 365), DATE_SUB('2007-02-28 01:12:34', 730) FROM src WHERE src.key = 86 PREHOOK: type: QUERY PREHOOK: Input: default@src #### A masked pattern was here #### POSTHOOK: query: SELECT DATEDIFF('2008-12-31', '2009-01-01'), DATEDIFF('2008-03-01', '2008-02-28'), DATEDIFF('2007-03-01', '2007-01-28'), DATEDIFF('2008-03-01 23:59:59', '2008-03-02 00:00:00'), DATE_ADD('2008-12-31', 1), DATE_ADD('2008-12-31', 365), DATE_ADD('2008-02-28', 2), DATE_ADD('2009-02-28', 2), DATE_ADD('2007-02-28', 365), DATE_ADD('2007-02-28 23:59:59', 730), DATE_SUB('2009-01-01', 1), DATE_SUB('2009-01-01', 365), DATE_SUB('2008-03-01', 2), DATE_SUB('2009-03-01', 2), DATE_SUB('2007-02-28', 365), DATE_SUB('2007-02-28 01:12:34', 730) FROM src WHERE src.key = 86 POSTHOOK: type: QUERY POSTHOOK: Input: default@src #### A masked pattern was here #### -1 2 32 -1 2009-01-01 2009-12-31 2008-03-01 2009-03-02 2008-02-28 2009-02-27 2008-12-31 2008-01-02 2008-02-28 2009-02-27 2006-02-28 2005-02-28