From 574b582f1ee647cabacaceb18773bc1bf450a6f2 Mon Sep 17 00:00:00 2001 From: Xinyi Zou Date: Thu, 26 Oct 2023 17:00:41 +0800 Subject: [PATCH] 5 --- .../doris/nereids/glue/translator/PhysicalPlanTranslator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/PhysicalPlanTranslator.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/PhysicalPlanTranslator.java index 159b3368890574d..dfb7f2fab9d9b44 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/PhysicalPlanTranslator.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/PhysicalPlanTranslator.java @@ -623,6 +623,7 @@ public PlanFragment visitPhysicalOlapScan(PhysicalOlapScan olapScan, PlanTransla TableRef ref = new TableRef(tableName, null, null); BaseTableRef tableRef = new BaseTableRef(ref, olapTable, tableName); tupleDescriptor.setRef(tableRef); + olapScanNode.setSampleTabletIds(olapScan.getSelectedTabletIds()); olapScanNode.setSelectedPartitionIds(olapScan.getSelectedPartitionIds()); if (olapScan.getTableSample().isPresent()) { olapScanNode.setTableSample(new TableSample(olapScan.getTableSample().get().isPercent,