morningman commented on code in PR #19570:
URL: https://github.com/apache/doris/pull/19570#discussion_r1191867141
##########
fe/fe-core/src/main/java/org/apache/doris/analysis/StmtRewriter.java:
##########
@@ -1322,7 +1322,7 @@ public static boolean rewriteByPolicy(StatementBase
statementBase, Analyzer anal
if (dbName == null) {
dbName = analyzer.getDefaultDb();
}
- Database db =
currentEnv.getInternalCatalog().getDbOrAnalysisException(dbName);
+ DatabaseIf db =
currentEnv.getCurrentCatalog().getDbOrAnalysisException(dbName);
Review Comment:
You need to use `tableRef.getName().getCtl()`
--
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]