SELECT IFNULL(test,'123') FROM (select null as test) t1; #123
SELECT test as tttt FROM (select null as test) t1; #null
SELECT (case test when null then '1' ELSE '3' end) as tttt FROM (select null as test) t1; #3
SELECT (case when test is null then '1' ELSE '3' end) as tttt FROM (select null as test) t1; #1
SELECT test as tttt FROM (select null as test) t1; #null
SELECT (case test when null then '1' ELSE '3' end) as tttt FROM (select null as test) t1; #3
SELECT (case when test is null then '1' ELSE '3' end) as tttt FROM (select null as test) t1; #1