where 條件中 包含 OR 和 IS NULL 的 SQL 過濾會(huì)失效 。 例如: select * from temp where id = 1 or id is null 這樣的結(jié)果篩選出來 不會(huì)包含 id = null的結(jié)果, 把id = 1 去掉 只有id is null 這樣的結(jié)果是正確的.
據(jù)說是flink 1.12 底層優(yōu)化造成 , is null 被優(yōu)化成了 is = null , 因?yàn)閟ql 中 Null 的語義是unknown 所以條件不會(huì)成立。 無法過濾得到 is null 條件的數(shù)據(jù)。 1.3版本被優(yōu)化。