10

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...

PP.
  • 10,764
  • 7
  • 45
  • 59

2 Answers2

2

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.

stinkymatt
  • 1,658
  • 11
  • 14
-4

I can't test it right now, but if memory serves me well, the underscore character "_" should help you splitting your command over multiple lines.

The beginning of my very very very very _
very very very very very very very very _
very very very long command
Nicolas
  • 2,158
  • 1
  • 17
  • 25