Skip to content

Commit

Permalink
fix not in term crash bug (#186)
Browse files Browse the repository at this point in the history
Signed-off-by: yusheng.ma <yusheng.ma@zilliz.com>
  • Loading branch information
Presburger authored Jul 2, 2024
1 parent bec55ff commit 86303b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parser/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,8 @@ class PlanCCVisitor : public PlanVisitor {
google::protobuf::Arena::CreateMessage<proto::plan::UnaryExpr>(
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);
}
Expand Down

0 comments on commit 86303b6

Please sign in to comment.