carlvinhust2012 commented on code in PR #16271:
URL: https://github.com/apache/doris/pull/16271#discussion_r1091371271
##########
fe/fe-core/src/main/java/org/apache/doris/analysis/InsertStmt.java:
##########
@@ -322,8 +331,15 @@ public void analyze(Analyzer analyzer) throws
UserException {
private void analyzeTargetTable(Analyzer analyzer) throws
AnalysisException {
// Get table
if (targetTable == null) {
- DatabaseIf db =
Env.getCurrentInternalCatalog().getDbOrAnalysisException(tblName.getDb());
- targetTable = (Table)
db.getTableOrAnalysisException(tblName.getTbl());
+ DatabaseIf db =
analyzer.getEnv().getCurrentCatalog().getDbOrAnalysisException(tblName.getDb());
Review Comment:
what is difference between 'getCurrentCatalog' and
'getCurrentInternalCatalog' ?
--
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]