According to here:
Inline definition of scripted UDFs is not supported, and there is a
reference to a jira issue on this feature:
However, the referenced issue is marked as Closed/Fixed.
Is this a current feature (googling I only found other references to
this feature not being supported), or should the issue be
reopened/marked won't fix?