This is an automated email from the ASF dual-hosted git repository. jakevin 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 47bd3e77e8 [fix](Nereids) cannot select random olap table (#18044) 47bd3e77e8 is described below commit 47bd3e77e8709ef785efb379d0b8873b8fca9f91 Author: morrySnow <101034200+morrys...@users.noreply.github.com> AuthorDate: Thu Mar 23 22:11:36 2023 +0800 [fix](Nereids) cannot select random olap table (#18044) --- fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java | 2 +- 1 file changed, 1 insertion(+), 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 d194e0dc4c..f07adf882c 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 @@ -952,7 +952,7 @@ public class OlapScanNode extends ScanNode { final List<Tablet> tablets = Lists.newArrayList(); final Collection<Long> tabletIds = distributionPrune(selectedTable, partition.getDistributionInfo()); LOG.debug("distribution prune tablets: {}", tabletIds); - if (sampleTabletIds.size() != 0) { + if (tabletIds != null && sampleTabletIds.size() != 0) { tabletIds.retainAll(sampleTabletIds); LOG.debug("after sample tablets: {}", tabletIds); } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org