Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I split a command over multiple lines in Apache Pig Latin?

Tags:

apache-pig

I have some very long lines as Apache Pig (Latin) expressions. Is there a way of splitting these over multiple lines?

I've tried a trailing backslash to no avail, as soon as I press enter the (incomplete) command executes...

like image 937
PP. Avatar asked Jan 27 '11 12:01

PP.


1 Answers

I'm writing at a Pig 0.8 grunt shell and I just hit return and it gives me a continuation prompt ">>". It doesn't appear to have any problem splitting individual statements over multiple lines in interactive mode, which is what it sounded like you were asking about. You can also feed a script with multiline statements to Pig via STDIN.

like image 192
stinkymatt Avatar answered Oct 02 '22 12:10

stinkymatt