starocean999 commented on code in PR #47894:
URL: https://github.com/apache/doris/pull/47894#discussion_r1955485559


##########
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) {
+            List<String> nameParts = 
visitMultipartIdentifier(ctx.multipartIdentifier());
+            tableName = nameParts.get(0); // only one entry possible
+        }
+        return new DescribeCommand(tableName, true);
+    }
+
+    @Override
+    public List<String> visitTableAlias(DorisParser.TableAliasContext ctx) {

Review Comment:
   ```suggestion
       public String visitTableAlias(DorisParser.TableAliasContext ctx) {
           if (ctx.identifierList() != null) {
               throw new ParseException("Do not implemented", ctx);
           }
           return ctx.strictIdentifier() != null ? 
ctx.strictIdentifier().getText() : null;
       }
   ```



-- 
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