Saving all output to "!!{outputDirectory}!!/udf_sign.q.raw". Enter "record" with no arguments to stop it. >>> !run !!{qFileDirectory}!!/udf_sign.q >>> explain select sign(0) FROM src LIMIT 1; 'Explain' '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' '' '' 32 rows selected >>> select sign(0) FROM src LIMIT 1; '_c0' '0.0' 1 row selected >>> >>> select sign(-45) FROM src LIMIT 1; '_c0' '-1.0' 1 row selected >>> >>> select sign(46) FROM src LIMIT 1; '_c0' '1.0' 1 row selected >>> >>> DESCRIBE FUNCTION sign; 'tab_name' 'sign(x) - returns the sign of x )' 1 row selected >>> DESCRIBE FUNCTION EXTENDED sign; 'tab_name' 'sign(x) - returns the sign of x )' 'Example:' ' > SELECT sign(40) FROM src LIMIT 1;' ' 1' 4 rows selected >>> explain select sign(0) FROM src LIMIT 1; 'Explain' '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' '' '' 32 rows selected >>> select sign(0) FROM src LIMIT 1; '_c0' '0.0' 1 row selected >>> >>> select sign(-45) FROM src LIMIT 1; '_c0' '-1.0' 1 row selected >>> >>> select sign(46) FROM src LIMIT 1; '_c0' '1.0' 1 row selected >>> >>> DESCRIBE FUNCTION sign; 'tab_name' 'sign(x) - returns the sign of x )' 1 row selected >>> DESCRIBE FUNCTION EXTENDED sign; 'tab_name' 'sign(x) - returns the sign of x )' 'Example:' ' > SELECT sign(40) FROM src LIMIT 1;' ' 1' 4 rows selected >>> !record