How to use “case when” in Hadoop pig?

前端 未结 0 1516
失恋的感觉
失恋的感觉 2021-01-06 09:20

what is the correct pig language for this pig-sql pseudocode?
data = foreach data generate case when column1 is null then -1 else column2 end as new_column;

相关标签:
回答
  • 消灭零回复
提交回复
热议问题