Skip to content

Instantly share code, notes, and snippets.

@yssharma
Created February 9, 2015 17:42
Show Gist options
  • Save yssharma/5ee8e4ab9437c807c601 to your computer and use it in GitHub Desktop.
Save yssharma/5ee8e4ab9437c807c601 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
class MyUdf:
name = "mysimpleudf"
scope = "SIMPLE"
nulls = "NULL_IF_NULL"
def setup(self):
print 'in setup'
return -1
def eval(self):
print 'in exec'
return 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment