

def get_clause(data, kind):
    assert ((kind == 'order_by') or (kind == 'group_by')), 'kind must be "order_by" or "group_by"'
    clause = getattr(data, ('_%s_clause' % kind), None)
    return (data.clauses if (clause is not None) else None)

dataset/ETHPy150Open blaze/blaze/blaze/compute/sql.py get_clause/VarMisuse@46/80 `clause`->`data`