

def _ifnull_workaround(translator, expr):
    op = expr.op()
    (a, b) = op.args
    if (isinstance(op, ir.DecimalValue) and isinstance(b, ir.IntegerValue)):
        b = b.cast(a.type())
    return _format_call(translator, 'isnull', a, b)

dataset/ETHPy150Open cloudera/ibis/ibis/impala/compiler.py _ifnull_workaround/VarMisuse@34/40 `a`->`op`