You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by zh...@apache.org on 2020/08/11 01:37:52 UTC

[incubator-doris] branch master updated: Fix duplicate table export fail (#4293)

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

zhaoc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 6abb374  Fix duplicate table export fail (#4293)
6abb374 is described below

commit 6abb374d0caf8881c9e36104ebda7ddb77f49fc1
Author: HangyuanLiu <46...@qq.com>
AuthorDate: Tue Aug 11 09:37:43 2020 +0800

    Fix duplicate table export fail (#4293)
---
 fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java b/fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java
index 0dc7992..187c1d0 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java
@@ -472,6 +472,10 @@ public class OlapScanNode extends ScanNode {
         // Step2: select best rollup
         long start = System.currentTimeMillis();
         if (olapTable.getKeysType() == KeysType.DUP_KEYS) {
+            //This function is compatible with the INDEX selection logic of ROLLUP, 
+            //so the Duplicate table here returns base index directly
+            //and the selection logic of materialized view is selected in "MaterializedViewSelector"
+            selectedIndexId = olapTable.getBaseIndexId();
             LOG.debug("The best index will be selected later in mv selector");
             return;
         }


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