You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "mike kobyakov (JIRA)" <ji...@apache.org> on 2014/12/12 10:13:13 UTC
[jira] [Created] (PIG-4357) Support UDFs in %declare and %default
macros
mike kobyakov created PIG-4357:
----------------------------------
Summary: Support UDFs in %declare and %default macros
Key: PIG-4357
URL: https://issues.apache.org/jira/browse/PIG-4357
Project: Pig
Issue Type: Improvement
Components: internal-udfs
Reporter: mike kobyakov
although this syntax is legal
%default DAYS 2
%default TWICE_AS_LONG 2*$DAYS
this one however is not.
%default DATE '2014-10-01'
DEFINE FileMask myudfs.DateFolderFileMask();
%default FOLDER FileMask('$DATE','$DAYS')
although I understand that preprocessor statements are likely done before DEFINE statements, and thus this is probably not trivial.
however, it would be some really good syntactic sugar, if this was supported. the current way of using %declare with backticks forces people to write additional shell scripts, rather than use the available UDF facilities.
thanks in advance!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)