From bb216de58d76b0668307df60c7cf3473e5feef8d Mon Sep 17 00:00:00 2001 From: obdev Date: Fri, 8 Sep 2023 14:18:44 +0800 Subject: [PATCH] bugfix: specify tenant for memory allocation of member variables in PredicateDeduce --- src/sql/rewrite/ob_predicate_deduce.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sql/rewrite/ob_predicate_deduce.h b/src/sql/rewrite/ob_predicate_deduce.h index 42e269fc29..5378ab37ba 100644 --- a/src/sql/rewrite/ob_predicate_deduce.h +++ b/src/sql/rewrite/ob_predicate_deduce.h @@ -28,7 +28,11 @@ class ObPredicateDeduce { }; public: - ObPredicateDeduce(ObDMLStmt &stmt) : stmt_(stmt) {} + ObPredicateDeduce(ObDMLStmt &stmt) : stmt_(stmt) { + graph_.set_attr(ObMemAttr(MTL_ID(), "Graph")); + type_safety_.set_attr(ObMemAttr(MTL_ID(), "TypeSafety")); + topo_order_.set_attr(ObMemAttr(MTL_ID(), "TopoOrder")); + } int add_predicate(ObRawExpr *pred, bool &is_added);