

@compiles(sa.sql.elements.Extract, 'mssql')
def mssql_extract_to_datepart(element, compiler, **kwargs):
    func = sa.func.datepart(sa.sql.expression.column(element.field), element.expr)
    return compiler.visit_function(func, **func)

dataset/ETHPy150Open blaze/blaze/blaze/compute/sql.py mssql_extract_to_datepart/VarMisuse@63/76 `kwargs`->`func`