Re: SQL null 过滤的问题

2021-08-12 文章 Caizhi Weng
Hi! 这是一个 bug,已经在 1.12.5 修复。详见 https://issues.apache.org/jira/browse/FLINK-22015 silence 于2021年8月12日周四 下午12:54写道: > flink 版本:1.12 > 列:col varchar > 使用where col is null时可以过滤出col为null的记录 > 使用where col is null or col = ''时就不可以 > 同时试了下另外一种写法 > where (case when col is null then true else false end)

SQL null 过滤的问题

2021-08-11 文章 silence
flink 版本:1.12 列:col varchar 使用where col is null时可以过滤出col为null的记录 使用where col is null or col = ''时就不可以 同时试了下另外一种写法 where (case when col is null then true else false end) 可以过滤出来 where (case when col is null then true when col = '' then true else false end) 过滤不出来 请问这个bug吗,还是语法有问题