[fix](cast)prevent be from crashing when cast function is not available (#14540)

* [fix](cast)prevent be from crashing when cast function is not available

* format code
This commit is contained in:
starocean999
2022-11-24 14:17:49 +08:00
committed by GitHub
parent 6c7f758ef7
commit 7f4cc61286
5 changed files with 36 additions and 5 deletions

View File

@ -196,7 +196,9 @@ Status ExecNode::init(const TPlanNode& tnode, RuntimeState* state) {
RETURN_IF_ERROR(doris::vectorized::VExpr::create_expr_tree(_pool, tnode.vconjunct,
_vconjunct_ctx_ptr.get()));
}
RETURN_IF_ERROR(Expr::create_expr_trees(_pool, tnode.conjuncts, &_conjunct_ctxs));
if (typeid(*this) != typeid(doris::vectorized::NewOlapScanNode)) {
RETURN_IF_ERROR(Expr::create_expr_trees(_pool, tnode.conjuncts, &_conjunct_ctxs));
}
// create the projections expr
if (tnode.__isset.projections) {