case statement in hive where clause