morningman commented on code in PR #28173:
URL: https://github.com/apache/doris/pull/28173#discussion_r1431026118


##########
fe/fe-core/src/main/java/org/apache/doris/analysis/ShowColumnStmt.java:
##########
@@ -98,8 +106,14 @@ public void analyze(Analyzer analyzer) throws 
AnalysisException {
             tableName.setDb(db);
         }
         tableName.analyze(analyzer);
-        // disallow external catalog
-        Util.prohibitExternalCatalog(tableName.getCtl(), 
this.getClass().getSimpleName());
+
+        if (!Env.getCurrentEnv().getAccessManager()

Review Comment:
   Better to use this method `public boolean checkTblPriv(UserIdentity 
currentUser, String ctl, String db, String tbl, PrivPredicate wanted)` to and 
pass all `catalog`, `database` and `table` info



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