PREHOOK: query: explain select sign(0) FROM src LIMIT 1 PREHOOK: type: QUERY POSTHOOK: query: explain select sign(0) FROM src LIMIT 1 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 sign 0))) (TOK_LIMIT 1))) 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 Select Operator expressions: expr: sign(0) type: double outputColumnNames: _col0 Limit 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 sign(0) FROM src LIMIT 1 PREHOOK: type: QUERY PREHOOK: Input: default@src PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-41-17_227_1383191053945370419/-mr-10000 POSTHOOK: query: select sign(0) FROM src LIMIT 1 POSTHOOK: type: QUERY POSTHOOK: Input: default@src POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-41-17_227_1383191053945370419/-mr-10000 0.0 PREHOOK: query: select sign(-45) FROM src LIMIT 1 PREHOOK: type: QUERY PREHOOK: Input: default@src PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-41-20_497_4344647994964610941/-mr-10000 POSTHOOK: query: select sign(-45) FROM src LIMIT 1 POSTHOOK: type: QUERY POSTHOOK: Input: default@src POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-41-20_497_4344647994964610941/-mr-10000 -1.0 PREHOOK: query: select sign(46) FROM src LIMIT 1 PREHOOK: type: QUERY PREHOOK: Input: default@src PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-41-23_774_6548968224814030868/-mr-10000 POSTHOOK: query: select sign(46) FROM src LIMIT 1 POSTHOOK: type: QUERY POSTHOOK: Input: default@src POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-41-23_774_6548968224814030868/-mr-10000 1.0 PREHOOK: query: DESCRIBE FUNCTION sign PREHOOK: type: DESCFUNCTION POSTHOOK: query: DESCRIBE FUNCTION sign POSTHOOK: type: DESCFUNCTION sign(x) - returns the sign of x ) PREHOOK: query: DESCRIBE FUNCTION EXTENDED sign PREHOOK: type: DESCFUNCTION POSTHOOK: query: DESCRIBE FUNCTION EXTENDED sign POSTHOOK: type: DESCFUNCTION sign(x) - returns the sign of x ) Example: > SELECT sign(40) FROM src LIMIT 1; 1 PREHOOK: query: explain select sign(0) FROM src LIMIT 1 PREHOOK: type: QUERY POSTHOOK: query: explain select sign(0) FROM src LIMIT 1 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 sign 0))) (TOK_LIMIT 1))) 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 Select Operator expressions: expr: sign(0) type: double outputColumnNames: _col0 Limit 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 sign(0) FROM src LIMIT 1 PREHOOK: type: QUERY PREHOOK: Input: default@src PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-41-27_267_8942791588882991640/-mr-10000 POSTHOOK: query: select sign(0) FROM src LIMIT 1 POSTHOOK: type: QUERY POSTHOOK: Input: default@src POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-41-27_267_8942791588882991640/-mr-10000 0.0 PREHOOK: query: select sign(-45) FROM src LIMIT 1 PREHOOK: type: QUERY PREHOOK: Input: default@src PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-41-30_576_4621808874907335472/-mr-10000 POSTHOOK: query: select sign(-45) FROM src LIMIT 1 POSTHOOK: type: QUERY POSTHOOK: Input: default@src POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-41-30_576_4621808874907335472/-mr-10000 -1.0 PREHOOK: query: select sign(46) FROM src LIMIT 1 PREHOOK: type: QUERY PREHOOK: Input: default@src PREHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-41-33_805_4140983550923146966/-mr-10000 POSTHOOK: query: select sign(46) FROM src LIMIT 1 POSTHOOK: type: QUERY POSTHOOK: Input: default@src POSTHOOK: Output: file:/tmp/sdong/hive_2011-02-10_17-41-33_805_4140983550923146966/-mr-10000 1.0 PREHOOK: query: DESCRIBE FUNCTION sign PREHOOK: type: DESCFUNCTION POSTHOOK: query: DESCRIBE FUNCTION sign POSTHOOK: type: DESCFUNCTION sign(x) - returns the sign of x ) PREHOOK: query: DESCRIBE FUNCTION EXTENDED sign PREHOOK: type: DESCFUNCTION POSTHOOK: query: DESCRIBE FUNCTION EXTENDED sign POSTHOOK: type: DESCFUNCTION sign(x) - returns the sign of x ) Example: > SELECT sign(40) FROM src LIMIT 1; 1