Hi, I've been looking at the PySpark UserDefinedFunction and I have a couple of suggestions how it could be improved including:
* Full featured decorator syntax. * Docstring handling improvements. * Lazy initialization. I summarized all suggestions with links to possible solutions in gist (https://gist.github.com/zero323/88953975361dbb6afd639b35368a97b4) and I'll be happy to open a JIRA and submit a PR if there is any interest in that. -- Best, Maciej