

def reconstruct_select(columns, original, **kwargs):
    return sa.select(columns, from_obj=kwargs.pop('from_obj', None), whereclause=kwargs.pop('whereclause', getattr(original, '_whereclause', None)), bind=kwargs.pop('bind', original.bind), distinct=kwargs.pop('distinct', getattr(kwargs, '_distinct', False)), group_by=kwargs.pop('group_by', getattr(original, '_group_by_clause', None)), having=kwargs.pop('having', getattr(original, '_having', None)), limit=kwargs.pop('limit', getattr(original, '_limit', None)), offset=kwargs.pop('offset', getattr(original, '_offset', None)), order_by=kwargs.pop('order_by', getattr(original, '_order_by_clause', None)), **kwargs)

dataset/ETHPy150Open blaze/blaze/blaze/compute/sql.py reconstruct_select/VarMisuse@74/93 `original`->`kwargs`