我可以在 Apache Pig Latin 中将命令拆分为多行吗?

发布于 2024-10-14 20:50:17 字数 112 浏览 9 评论 0原文

我有一些很长的行作为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

红玫瑰 2024-10-21 20:50:17

我正在 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.

吃兔兔 2024-10-21 20:50:17

我现在无法测试它,但如果我没记错的话,下划线字符“_”应该可以帮助您将命令拆分为多行。

The beginning of my very very very very _
very very very very very very very very _
very very very long command

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文