def test_where(self):
        table = self.lineitem

        q = table.l_quantity
        expr = api.where(table.l_discount > 0,
                         q * table.l_discount, api.null)

        assert isinstance(expr, ir.DecimalArray)

        expr = api.where(table.l_discount > 0,
                         (q * table.l_discount).sum(), api.null)
        assert isinstance(expr, ir.DecimalArray)

        expr = api.where(0 > table.l_discount.sum(),
                         (q * table.l_discount).sum(), api.null)
        assert isinstance(expr, ir.DecimalScalar)
dataset/ETHPy150Open cloudera/ibis/ibis/expr/tests/test_decimal.py/TestDecimal.test_where/swapped operands of `>`