Please enable JavaScript.
Coggle requires JavaScript to display documents.
APACHE_PIG_03 (EVAL FUNCTION (AVG(expression) (require GROUP operation…
APACHE_PIG_03
EVAL FUNCTION
CONCAT
CONCAT(expression, expression)
-
two expressions must be of the same type such as chararray, tuples. maps, bags
-
-
AVG(expression)
-
-
-
similar for MAX, MIN, SUM,
-
-
SIZE
return #char in chararray, #byte in bytearray, 1 for int, float, double, long; #key_value pairs in maps, #tuples in a bag
-
Dereference Operator
bag
bag.field_name OR bag.$0 or bag.(file_name1, file_name_2) OR bag.($0, $1, $2), etc.
-
tuple
tuple.field_name OR tuple.$0 OR tuple.($0, $1, $2), etc.
-
REGISTER
REGISTER a JAR file so that UDF in this file can be used like com.twitter.elephantbird.pig.load.JsonLoader('-nestedLoad') is file .....jar of twitter
-