def visit_extract(self, extract, **kw):
    try:
        return ("CAST(STRFTIME('%s', %s) AS INTEGER)" % (self.extract_map[extract.field], self.process(extract.expr, **kw)))
    except KeyError as err:
        raise exc.CompileError(('%s is not a valid extract argument.' % extract.field)) from err
def visit_extract(self, extract, **kw):
    try:
        return ("CAST(STRFTIME('%s', %s) AS INTEGER)" % (self.extract_map[extract.field], self.process(extract.expr, **kw)))
    except KeyError as err:
        raise exc.CompileError(('%s is not a valid extract argument.' % extract.field)) from err