Syntax to pass a databag to a UDF (or the built in function SIZEOF)
9 views
Skip to first unread message
Santhosh Swaminathan
unread,
Feb 3, 2016, 3:41:53 PM2/3/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cubert-users
I am looking for syntax to pass the entire databag to a UDF. I found out that the SIZEOF built in function takes a databag and outputs a tuple. But could you please share an example of how a databag can be passed while scripting? In pig we can achieve this by passing the relation as the argument of the UDF. But in Cubert, I get compile error.