我可以在 Apache Pig Latin 中将命令拆分为多行吗?
我有一些很长的行作为 Apache Pig(拉丁语)表达式。有没有办法将它们分成多行?
我尝试了尾部反斜杠但无济于事,只要我按 enter ,(不完整的)命令就会执行...
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...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我正在 Pig 0.8 grunt shell 上编写,我只需按回车键,它就会给我一个继续提示“>>”。在交互模式下将单个语句拆分为多行似乎没有任何问题,这听起来就像您所问的那样。您还可以通过 STDIN 将包含多行语句的脚本提供给 Pig。
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.