def test_coerce_bool_and_sum(sql):
    sql = sql.data
    n = sql.name
    t = symbol(n, discover(sql))
    expr = (1.0 > t.B).coerce(to='int32').sum()
    result = compute(expr, sql).scalar()
    expected = compute(t.B, sql, return_type=pd.Series).gt(1).sum()
    assert result == expected
dataset/ETHPy150Open blaze/blaze/blaze/compute/tests/test_postgresql_compute.py/test_coerce_bool_and_sum/swapped operands of `>`