@toolz.memoize
def alias_it(s):
    """ Alias a Selectable if it has a group by clause """
    if (hasattr(s, '_group_by_clause') or
            s._group_by_clause is not None and
            len(s._group_by_clause)):
        return s.alias(next(aliases))
    else:
        return s
dataset/ETHPy150Open blaze/blaze/blaze/compute/sql.py/alias_it/operator `and` -> `or`