London guy
London guy

Reputation: 28032

Combining multiple PIG commands in single line

In a PIG script, is it possible to combine multiple commands in a single line, such that the output of one command line, instead of going into an output variable, can directly go as input to another command?

Upvotes: 0

Views: 482

Answers (1)

user256717
user256717

Reputation:

It is allowed. But it doesn't optimize anything at runtime. It just confuses the syntax.

STORE(FORECH(LOAD '$file') GENERATE $0, $1) ) INTO 'output.txt';

Upvotes: 1

Related Questions