Is there any Conditional IF like operator in Apache PIG?

后端 未结 5 1048
灰色年华
灰色年华 2020-12-18 20:35

Actually I am writing PIG Script and want to execute some set of statements if one of the condition is satisfied.

I have set one variable and checking for some value

5条回答
  •  星月不相逢
    2020-12-18 21:32

    Pig is data flow language not control flow. Only construct which comes close is PIG split, but it is very limited.

    You can use oozie and its decision construct with two pig scripts.

提交回复
热议问题