You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by pa...@apache.org on 2023/11/03 02:39:16 UTC

(doris) 01/01: Bug](view) make forbiddenMVRewrite work on InlineViewRef (#26162)

This is an automated email from the ASF dual-hosted git repository.

panxiaolei pushed a commit to branch pick_1193
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 60aea8e357359bb3a885318bf49703b6f203aa67
Author: Pxl <px...@qq.com>
AuthorDate: Tue Oct 31 17:30:59 2023 +0800

    Bug](view) make forbiddenMVRewrite work on InlineViewRef (#26162)
    
    make forbiddenMVRewrite work on InlineViewRef
---
 .../src/main/java/org/apache/doris/analysis/SelectStmt.java    | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java
index 970d6261737..c4d51654039 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java
@@ -198,6 +198,16 @@ public class SelectStmt extends QueryStmt {
         groupingInfo = null;
     }
 
+    @Override
+    public void forbiddenMVRewrite() {
+        super.forbiddenMVRewrite();
+        for (TableRef ref : fromClause.getTableRefs()) {
+            if (ref instanceof InlineViewRef) {
+                ((InlineViewRef) ref).getQueryStmt().forbiddenMVRewrite();
+            }
+        }
+    }
+
     @Override
     public void reset() {
         super.reset();


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org