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

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new 4d18fc1e4c6 [profile](name) add table rollup name in profile (#33137)
4d18fc1e4c6 is described below

commit 4d18fc1e4c65504cf2672fb77137d6939482b90b
Author: zhangstar333 <[email protected]>
AuthorDate: Tue Apr 2 11:17:53 2024 +0800

    [profile](name) add table rollup name in profile (#33137)
---
 fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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 42f9c8a551e..82f1a44a37c 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
@@ -1492,7 +1492,11 @@ public class OlapScanNode extends ScanNode {
             
msg.olap_scan_node.setTopnFilterSourceNodeIds(topnFilterSourceNodeIds);
         }
         msg.olap_scan_node.setKeyType(olapTable.getKeysType().toThrift());
-        msg.olap_scan_node.setTableName(olapTable.getName());
+        String tableName = olapTable.getName();
+        if (selectedIndexId != -1) {
+            tableName = tableName + "(" + getSelectedIndexName() + ")";
+        }
+        msg.olap_scan_node.setTableName(tableName);
         
msg.olap_scan_node.setEnableUniqueKeyMergeOnWrite(olapTable.getEnableUniqueKeyMergeOnWrite());
 
         msg.setPushDownAggTypeOpt(pushDownAggNoGroupingOp);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to