by shigemk2

当面は技術的なことしか書かない

presto case when

6.3. Conditional Expressions — Presto 0.221 Documentation

The result for the matching value is returned. If no match is found, the result from the ELSE clause is returned if it exists, otherwise null is returned.

else書いてないときにelseに相当するデータが来たら、表示されないのかと思いきやnullが返ってくるので、表示させたくないなら別途whereで弾くしかない。

0.221