

def _literal(translator, expr):
    if isinstance(expr, ir.BooleanValue):
        typeclass = 'boolean'
    elif isinstance(expr, ir.StringValue):
        typeclass = 'string'
    elif isinstance(typeclass, ir.NumericValue):
        typeclass = 'number'
    elif isinstance(expr, ir.TimestampValue):
        typeclass = 'timestamp'
    else:
        raise NotImplementedError
    return _literal_formatters[typeclass](expr)

dataset/ETHPy150Open cloudera/ibis/ibis/impala/compiler.py _literal/VarMisuse@49/61 `expr`->`typeclass`