Probably we need to support such kind of expressions:
SELECT CASE WHEN 1 THEN 13 ELSE 12 END;
WHEN 1=1 - works correctly in such case. Additional info was given in 
Apache Calcite based query execution engine
Calcite. SELECT with CASE without boolean expression - fails.