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...
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...
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.
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
© 2022 - 2024 — McMap. All rights reserved.