From 86303b6d3a871eb86c1f7a6e3a3acde3542b8824 Mon Sep 17 00:00:00 2001 From: presburger Date: Tue, 2 Jul 2024 22:08:32 +0800 Subject: [PATCH] fix not in term crash bug (#186) Signed-off-by: yusheng.ma --- src/parser/parser.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parser/parser.h b/src/parser/parser.h index 040ba71..09d528e 100644 --- a/src/parser/parser.h +++ b/src/parser/parser.h @@ -1101,7 +1101,8 @@ class PlanCCVisitor : public PlanVisitor { google::protobuf::Arena::CreateMessage( arena.get()); unary_expr->set_op(proto::plan::UnaryExpr_UnaryOp_Not); - unary_expr->set_allocated_child(expr); + unary_expr->unsafe_arena_set_allocated_child(expr); + root_expr->unsafe_arena_set_allocated_unary_expr(unary_expr); return ExprWithDtype( root_expr, proto::schema::DataType::Bool, false); }