Pig Syntax for Min / Max of a column

What is the Pig syntax to determine the minimum / maximum of a column within the variable operator? I know to find the min / max across multiple columns within a row the syntax is:

MAX(TOBAG([Column 1], [Column 2], [Column 3]))

However, I need to return the max value from [Column 1] across all rows.

(2) Answers

Login