starocean999 commented on code in PR #47894: URL: https://github.com/apache/doris/pull/47894#discussion_r1955477231
########## fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java: ########## @@ -5637,5 +5640,59 @@ public LogicalPlan visitShowQueuedAnalyzeJobs(ShowQueuedAnalyzeJobsContext ctx) String stateValue = ctx.stateValue == null ? null : stripQuotes(ctx.stateValue.getText()); return new ShowQueuedAnalyzeJobsCommand(tableName, stateKey, stateValue); } + + @Override + public LogicalPlan visitDescribeTable(DorisParser.DescribeTableContext ctx) { + String tableName = null; + if (ctx.multipartIdentifier() != null) { + List<String> nameParts = visitMultipartIdentifier(ctx.multipartIdentifier()); + tableName = nameParts.get(0); // only one entry possible + } + return new DescribeCommand(tableName, false); + } + + @Override + public LogicalPlan visitDescribeTableAll(DorisParser.DescribeTableAllContext ctx) { + String tableName = null; + if (ctx.multipartIdentifier() != null) { Review Comment: multipartIdentifier is always not null, no need to check ########## fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java: ########## @@ -615,6 +617,7 @@ import org.apache.doris.nereids.trees.plans.commands.ShowProcessListCommand; import org.apache.doris.nereids.trees.plans.commands.ShowQueryProfileCommand; import org.apache.doris.nereids.trees.plans.commands.ShowQueuedAnalyzeJobsCommand; +import org.apache.doris.nereids.trees.plans.commands.ShowQueuedAnalyzeJobsCommand; Review Comment: ```suggestion ``` -- 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