[fix](meta) fix bug for using full name in show_full_columns stmt (#28019)

This commit is contained in:
Yulei-Yang
2023-12-07 10:17:25 +08:00
committed by GitHub
parent 616ba2823f
commit 630de740ea
2 changed files with 63 additions and 1 deletions

View File

@ -1005,7 +1005,7 @@ public class ShowExecutor {
private void handleShowColumn() throws AnalysisException {
ShowColumnStmt showStmt = (ShowColumnStmt) stmt;
List<List<String>> rows = Lists.newArrayList();
DatabaseIf db = ctx.getCurrentCatalog().getDbOrAnalysisException(showStmt.getDb());
DatabaseIf db = Env.getCurrentEnv().getInternalCatalog().getDbOrAnalysisException(showStmt.getDb());
TableIf table = db.getTableOrAnalysisException(showStmt.getTable());
PatternMatcher matcher = null;
if (showStmt.getPattern() != null) {