starocean999 commented on code in PR #46375: URL: https://github.com/apache/doris/pull/46375#discussion_r1908387925
########## fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java: ########## @@ -5350,8 +5363,20 @@ public LogicalPlan visitShowTabletStorageFormat(ShowTabletStorageFormatContext c @Override public LogicalPlan visitShowQueryProfile(ShowQueryProfileContext ctx) { - String queryIdPath = stripQuotes(ctx.queryIdPath.getText()); - return new ShowQueryProfileCommand(queryIdPath); + String queryIdPath = "/"; + if (ctx.queryIdPath != null) { + queryIdPath = stripQuotes(ctx.queryIdPath.getText()); + } + + long limit = 20; + Optional<LimitClauseContext> limitCtx = Optional.ofNullable(ctx.limitClause()); Review Comment: ```suggestion ``` looks like limitCtx is useless -- 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