LiBinfeng-01 commented on code in PR #44703:
URL: https://github.com/apache/doris/pull/44703#discussion_r1873325738


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java:
##########
@@ -4936,4 +4938,15 @@ public LogicalPlan 
visitShowCollation(ShowCollationContext ctx) {
         }
         return new ShowCollationCommand(wild);
     }
+
+    @Override
+    public LogicalPlan visitShowTableCreation(ShowTableCreationContext ctx) {
+        String dbName = null;
+        if (ctx.database != null) {
+            List<String> nameParts = visitMultipartIdentifier(ctx.database);
+            dbName = nameParts.get(0); // only one entry possible
+        }
+
+        return new ShowTableCreationCommand(dbName, 
ctx.STRING_LITERAL().getText());

Review Comment:
   ctx.STRING_LITERAL() is not always true defined by DorisParser.g4. Pls check 
this behavior and add some cases



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to