stalary commented on code in PR #13879:
URL: https://github.com/apache/doris/pull/13879#discussion_r1011044352


##########
fe/fe-core/src/main/java/org/apache/doris/policy/Policy.java:
##########
@@ -91,8 +94,18 @@ public static Policy fromCreateStmt(CreatePolicyStmt stmt) 
throws AnalysisExcept
                 UserIdentity userIdent = stmt.getUser();
                 userIdent.analyze(ConnectContext.get().getClusterName());
                 TableIf table = 
db.getTableOrAnalysisException(stmt.getTableName().getTbl());
+                Expression nereidsPredicate = null;
+                if (ConnectContext.get() != null
+                        && ConnectContext.get().getSessionVariable() != null
+                        && 
ConnectContext.get().getSessionVariable().isEnableNereidsPlanner()) {

Review Comment:
   Only need judge 
`ConnectContext.get().getSessionVariable().isEnableNereidsPlanner()`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to