Redash does not recognize the mongo switch.

https://docs.mongodb.com/manual/reference/operator/aggregation/switch/

This is a bug?

If your MongoDB server supports it, it should be supported. Can you share the query you were running and the error message you got back?