def test_ifelse_returning_bool(): one = ibis.literal(1) two = ibis.literal(2) true = ibis.literal(True) false = ibis.literal(False) expr = ibis.ifelse(one + one == two, true, false) result = execute(expr) assert result is True
"isRegExp": isRegExp, "isString": isString, # Type Coercion "toBoolean": toBoolean, "toDate": toDate, "toNumber": toNumber, "toString": toString, # Control Flow Functions "if": lambda test, true_expr, false_expr: ibis.ifelse(test, true_expr, false_expr ), # Math Functions "isNaN": lambda x: x.isnull(), "abs": ibis.expr.api.abs, "acos": ibis.expr.api.acos, "asin": ibis.expr.api.asin, "atan": ibis.expr.api.atan, "atan2": ibis.expr.api.atan2, "ceil": ibis.expr.api.ceil,