starocean999 commented on code in PR #44325: URL: https://github.com/apache/doris/pull/44325#discussion_r1886248821
########## fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java: ########## @@ -4529,6 +4530,22 @@ private Expression getWildWhere(DorisParser.WildWhereContext ctx) { } } + @Override + public KillCommand visitKillConnection(DorisParser.KillConnectionContext ctx) { + int connectionId = Integer.parseInt(ctx.INTEGER_VALUE().getText()); + return new KillCommand(true, connectionId); + } + + @Override + public KillCommand visitKillQuery(DorisParser.KillQueryContext ctx) { + if (ctx.INTEGER_VALUE() != null) { + return new KillCommand(false, Integer.parseInt(ctx.INTEGER_VALUE().getText())); + } else { + return new KillCommand( + ctx.STRING_LITERAL().getText().substring(1, ctx.STRING_LITERAL().getText().length() - 1)); Review Comment: ```suggestion stripQuotes(ctx.STRING_LITERAL().getText()); ``` -- 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