This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 9cede6d763 [fix](row-policy) row policy supports external catalog
(#19570)
9cede6d763 is described below
commit 9cede6d763424a4047fe484895ba4d9a1f847d30
Author: Stalary <[email protected]>
AuthorDate: Tue May 16 08:54:06 2023 +0800
[fix](row-policy) row policy supports external catalog (#19570)
Row policy support external catalog
---
fe/fe-core/src/main/java/org/apache/doris/analysis/StmtRewriter.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/analysis/StmtRewriter.java
b/fe/fe-core/src/main/java/org/apache/doris/analysis/StmtRewriter.java
index 3ce3ec00f8..68025e2e1f 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/analysis/StmtRewriter.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/StmtRewriter.java
@@ -21,7 +21,7 @@
package org.apache.doris.analysis;
import org.apache.doris.catalog.Column;
-import org.apache.doris.catalog.Database;
+import org.apache.doris.catalog.DatabaseIf;
import org.apache.doris.catalog.Env;
import org.apache.doris.catalog.ScalarType;
import org.apache.doris.catalog.TableIf;
@@ -1322,7 +1322,8 @@ public class StmtRewriter {
if (dbName == null) {
dbName = analyzer.getDefaultDb();
}
- Database db =
currentEnv.getInternalCatalog().getDbOrAnalysisException(dbName);
+ DatabaseIf db =
currentEnv.getCatalogMgr().getCatalogOrAnalysisException(tableRef.getName().getCtl())
+ .getDbOrAnalysisException(dbName);
long dbId = db.getId();
long tableId = table.getId();
RowPolicy matchPolicy =
currentEnv.getPolicyMgr().getMatchTablePolicy(dbId, tableId, user);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]