def test_where_use_if(self):
        expr = ibis.where(self.table.f > 0, self.table.e, self.table.a)
        assert isinstance(expr, ir.FloatValue)

        result = self._translate(expr)
        expected = "if(`f` > 0, `e`, `a`)"
        assert result == expected
dataset/ETHPy150Open cloudera/ibis/ibis/impala/tests/test_exprs.py/TestCaseExprs.test_where_use_if/original