

@compute_up.register(BinaryMath, base, Select)
def binary_math_sql_select(t, lhs, rhs, **kwargs):
    (left, right) = (lhs, first(rhs.inner_columns))
    result = getattr(sa.func, type(t).__name__)(left, right)
    return reconstruct_select([result], rhs)

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