morrySnow commented on code in PR #37342: URL: https://github.com/apache/doris/pull/37342#discussion_r1666696275
########## fe/fe-core/src/main/java/org/apache/doris/policy/RowPolicy.java: ########## @@ -102,6 +102,8 @@ public class RowPolicy extends Policy implements RowFilterPolicy { **/ @SerializedName(value = "originStmt") private String originStmt; + @SerializedName(value = "stmtIdx") + private int stmtIdx; Review Comment: what will stmtIdx be when do deserialization if no stmtIdx in json ########## fe/fe-core/src/main/java/org/apache/doris/policy/RowPolicy.java: ########## @@ -218,7 +225,7 @@ public boolean isInvalid() { public Expression getFilterExpression() throws AnalysisException { NereidsParser nereidsParser = new NereidsParser(); String sql = getOriginStmt(); - CreatePolicyCommand command = (CreatePolicyCommand) nereidsParser.parseSingle(sql); + CreatePolicyCommand command = (CreatePolicyCommand) nereidsParser.parseMultiple(sql).get(stmtIdx).first; Review Comment: check out of bound error? -- 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