|
|
-
Syntax for dereferenced project-range
Uri Laserson 2013-01-22, 20:41
I have tuple like so:
(a: (b:int, c:int, d:int, e:int))
I would like to call a UDF and pass a range of the nested tuple. This is what I would expect the command to be:
FOREACH alias GENERATE myUDF(a.(c .. e));
but this gives me an error like
ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <line 12, column 133> mismatched input '(' expecting SEMI_COLON
What is the proper way to perform this operation?
Thanks! Uri
-- Uri Laserson, PhD Data Scientist, Cloudera Twitter/GitHub: @laserson +1 617 910 0447 [EMAIL PROTECTED]
+
Uri Laserson 2013-01-22, 20:41
-
Re: Syntax for dereferenced project-range
Jonathan Coveney 2013-01-22, 22:23
I do not believe that this is currently supported for nested projections, though it should be. Feel free to make a JIRA ticket, I do not think it would be hard. 2013/1/22 Uri Laserson <[EMAIL PROTECTED]>
> I have tuple like so: > > (a: (b:int, c:int, d:int, e:int)) > > I would like to call a UDF and pass a range of the nested tuple. This is > what I would expect the command to be: > > FOREACH alias GENERATE myUDF(a.(c .. e)); > > but this gives me an error like > > ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <line 12, column > 133> mismatched input '(' expecting SEMI_COLON > > What is the proper way to perform this operation? > > Thanks! > Uri > > -- > Uri Laserson, PhD > Data Scientist, Cloudera > Twitter/GitHub: @laserson > +1 617 910 0447 > [EMAIL PROTECTED] >
+
Jonathan Coveney 2013-01-22, 22:23
-
Re: Syntax for dereferenced project-range
Uri Laserson 2013-01-22, 22:39
Thanks! This is now PIG-3130.
Uri On Tue, Jan 22, 2013 at 2:23 PM, Jonathan Coveney <[EMAIL PROTECTED]>wrote:
> I do not believe that this is currently supported for nested projections, > though it should be. Feel free to make a JIRA ticket, I do not think it > would be hard. > > > 2013/1/22 Uri Laserson <[EMAIL PROTECTED]> > > > I have tuple like so: > > > > (a: (b:int, c:int, d:int, e:int)) > > > > I would like to call a UDF and pass a range of the nested tuple. This is > > what I would expect the command to be: > > > > FOREACH alias GENERATE myUDF(a.(c .. e)); > > > > but this gives me an error like > > > > ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <line 12, column > > 133> mismatched input '(' expecting SEMI_COLON > > > > What is the proper way to perform this operation? > > > > Thanks! > > Uri > > > > -- > > Uri Laserson, PhD > > Data Scientist, Cloudera > > Twitter/GitHub: @laserson > > +1 617 910 0447 > > [EMAIL PROTECTED] > > >
-- Uri Laserson, PhD Data Scientist, Cloudera Twitter/GitHub: @laserson +1 617 910 0447 [EMAIL PROTECTED]
+
Uri Laserson 2013-01-22, 22:39
|
|