def test_elemwise_thats_also_a_column():
    t = symbol('t', 'var * {x: int, time: datetime, y: int}')
    expr = t[0 > t.x].time.truncate(months=1)
    expected = t[['time', 'x']]
    result = lean_projection(expr)
    assert result._child._child._child.isidentical(t[['time', 'x']])
dataset/ETHPy150Open blaze/blaze/blaze/expr/tests/test_optimize.py/test_elemwise_thats_also_a_column/swapped operands of `>`