Last active
August 29, 2015 14:21
-
-
Save chbatey/c40482646ab899d8117e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE FUNCTION maxI(current int, candidate int) | |
CALLED ON NULL INPUT | |
RETURNS int LANGUAGE java AS | |
'if (current == null) return candidate; else return Math.max(current, candidate);' ; | |
CREATE AGGREGATE maxAgg(int) | |
SFUNC maxI | |
STYPE int | |
INITCOND null; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment