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


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/DescribeCommand.java:
##########
@@ -270,11 +274,11 @@ public ShowResultSet doRun(ConnectContext ctx, 
StmtExecutor executor) throws Exc
                     builder.deleteCharAt(builder.length() - 1);
                     procString += builder.toString();
                 }
-                node = ProcService.getInstance().open(procString);
+                ProcNodeInterface node = 
ProcService.getInstance().open(procString);
                 if (node == null) {
                     throw new AnalysisException("Describe table[" + 
dbTableName.getTbl() + "] failed");
                 }
-                rows.addAll(getResultRows());
+                rows.addAll(getResultRows(node));
             } else {
                 Util.prohibitExternalCatalog(dbTableName.getCtl(), 
this.getClass().getSimpleName() + " ALL");

Review Comment:
   how about desc table all command? should we show comment column based on 
showColumnCommentInDescribe session var?



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