Illegal mixing of types in CASE or COALESCE statement

Does the latest version support this query?

Our Version: 3.2.4-201906051751050278-1bcce62

e.g.

select 
id, 
case when coalesce("entity1", "entity2")='party1' then 'B' else 'S' end as BS
from table

I tried version 4.1.1. Not supported. Any plan to support this?