

@dispatch(count, Select)
def compute_up(t, s, **kwargs):
    if (t.axis != (0,)):
        raise ValueError('axis not equal to 0 not defined for SQL reductions')
    al = next(aliases)
    try:
        s2 = s.alias(al)
        col = list(s2.primary_key)[0]
    except (KeyError, IndexError):
        s2 = s.alias(al)
        col = list(s2.columns)[0]
    result = sa.func.count(col)
    return select([list(inner_columns(result))[0].label(result._name)])

dataset/ETHPy150Open blaze/blaze/blaze/compute/sql.py compute_up/VarMisuse@136/167 `t`->`result`