Currently, the default omniscidb else_ operation, combined with when, is given a wrong translation CAST(NULL AS STR).
maybe it is an old implementation and it should be updated. IIRC, OmniSciDB didn't have literal NULL support some years ago.
probably, it can be translated directly to NULL.
Upstream issue: https://github.com/ibis-project/ibis/issues/2276