@dispatch(DateTime, ColumnElement)
def compute_up(expr, data, **kwargs):
    if expr.attr == 'date':
        return sa.func.date(data).label(expr._name)

    return sa.extract(expr.attr, data).label(expr._name)
dataset/ETHPy150Open blaze/blaze/blaze/compute/sql.py/compute_up/original