Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig, mail # user - does pig support loop and branching now?


+
yonghu 2013-05-07, 11:13
+
Jonathan Coveney 2013-05-07, 13:58
+
Shahab Yunus 2013-05-07, 14:00
+
Tom Wheeler 2013-05-07, 13:59
+
Shahab Yunus 2013-05-07, 14:01
Copy link to this message
-
RE: does pig support loop and branching now?
Duckworth, Will 2013-05-07, 15:15
You can do it the way Tom suggests.

Also take a look at PigServer / PigRunner

https://wiki.apache.org/pig/EmbeddedPig
https://pig.apache.org/docs/r0.11.0/api/org/apache/pig/PigServer.html

Or use Java / Python and call the shell.  Look at importing subprocess in Python or Runtime in Java.

Will Duckworth  Senior Vice President, Software Engineering  | comScore, Inc.(NASDAQ:SCOR)
o +1 (703) 438-2108 | m +1 (301) 606-2977 | mailto:[EMAIL PROTECTED]
.....................................................................................................

comScore Media Metrix(r) Multi-Platform: Audience Analytics for the Brave New Digital World

www.comscore.com/multiplatform
-----Original Message-----
From: Shahab Yunus [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 07, 2013 10:01 AM
To: [EMAIL PROTECTED]
Subject: Re: does pig support loop and branching now?

Nevermind Jonathan, if you also meant the same thing what Tom Wheeler just posted. Thanks :)

On Tue, May 7, 2013 at 9:59 AM, Tom Wheeler <[EMAIL PROTECTED]> wrote:

> Neither are supported directly in Pig Latin, but it is possible to
> embed Pig in another language such as Java or Python to achieve these:
>
>     http://ofps.oreilly.com/titles/9781449302641/embedding.html
>
> On Tue, May 7, 2013 at 6:13 AM, yonghu <[EMAIL PROTECTED]> wrote:
>
> > Dear all,
> >
> > I wonder if someone can tell me if the current version of pig
> > support
> loop
> > and branching?
> >
> > regards!
> >
> > Yong
> >
>
>
>
> --
> Tom Wheeler
> http://www.tomwheeler.com/
>