[feature](function) Add nvl function (#9726)

This commit is contained in:
Jing Shen
2022-05-30 09:43:00 +08:00
committed by GitHub
parent 0683181fef
commit 7b98dd438d
11 changed files with 178 additions and 17 deletions

View File

@ -359,7 +359,8 @@ Status Expr::create_expr(ObjectPool* pool, const TExprNode& texpr_node, Expr** e
*expr = pool->add(new IfExpr(texpr_node));
} else if (texpr_node.fn.name.function_name == "nullif") {
*expr = pool->add(new NullIfExpr(texpr_node));
} else if (texpr_node.fn.name.function_name == "ifnull") {
} else if (texpr_node.fn.name.function_name == "ifnull" ||
texpr_node.fn.name.function_name == "nvl") {
*expr = pool->add(new IfNullExpr(texpr_node));
} else if (texpr_node.fn.name.function_name == "coalesce") {
*expr = pool->add(new CoalesceExpr(texpr_node));