

@dispatch(BinaryMath, Select)
def compute_up(t, data, **kwargs):
    assert (len(data.c) == 1), ('Select cannot have more than a single column when doing arithmetic, got %r' % data)
    column = first(data.inner_columns)
    op = getattr(sa.func, type(t).__name__)
    if isinstance(t.lhs, Expr):
        return op(column, t.rhs)
    else:
        return op(t.lhs, column)

dataset/ETHPy150Open blaze/blaze/blaze/compute/sql.py compute_up/original