SegmentFault odps的问题2020-11-14T21:14:16+08:00https://segmentfault.com/feeds/tag/odpshttps://creativecommons.org/licenses/by-nc-nd/4.0/阿里云ODPS(现Maxcompute)中的shell节点,有什么好用法?https://segmentfault.com/q/10100000381713882020-11-14T21:14:16+08:002020-11-14T21:14:16+08:00长老https://segmentfault.com/u/xiangyang_u0<p>ODPS的工作流编辑页面,可以新建shell节点,但是官方几乎没有给太多的Demo,只是说是一个shell节点.在开发的时候,目前见过的场景:</p><ul><li>拿shell节点调ODPSCMD跑需要循环逻辑的SQL</li><li>shell节点里使用管道实现并发跑SQL</li><li>调用DataX做数据同步</li><li>远程某个linux服务器来执行任务.....</li></ul><p>嗯,还有哪些让人眼前一亮的使用方案?欢迎分享</p>SQL语句问题?https://segmentfault.com/q/10100000086263402017-03-09T12:01:05+08:002017-03-09T12:01:05+08:00和女神嗯嗯https://segmentfault.com/u/annian0<pre><code>select sum(case child_id when '' then 0 else 1 end) growth_photo_count,
-1 as fc from t_growth_photo tgp
这个SQL如何理解?? 尤其是 sum(case child_id when '' then 0 else 1 end) growth_photo_count
</code></pre>