You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by ya...@apache.org on 2020/11/05 20:59:33 UTC

[phoenix] branch master updated: PHOENIX-6209 Remove unused estimateParallelLevel()

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

yanxinyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/master by this push:
     new bbc19ac  PHOENIX-6209 Remove unused estimateParallelLevel()
bbc19ac is described below

commit bbc19ac29f41a68468f32c93f02f28efcc5f51b6
Author: wangchao 00549253 <wa...@huawei.com>
AuthorDate: Wed Oct 28 10:53:21 2020 +0800

    PHOENIX-6209 Remove unused estimateParallelLevel()
    
    Signed-off-by: Xinyi Yan <ya...@apache.org>
---
 phoenix-core/src/main/java/org/apache/phoenix/execute/HashJoinPlan.java | 2 --
 1 file changed, 2 deletions(-)

diff --git a/phoenix-core/src/main/java/org/apache/phoenix/execute/HashJoinPlan.java b/phoenix-core/src/main/java/org/apache/phoenix/execute/HashJoinPlan.java
index 1990462..ac7f8ad 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/execute/HashJoinPlan.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/execute/HashJoinPlan.java
@@ -387,8 +387,6 @@ public class HashJoinPlan extends DelegateQueryPlan {
             double outputRows = RowCountVisitor.limit(rows, delegate.getLimit());
             double outputBytes = rowWidth * outputRows;
             if (!delegate.getOrderBy().getOrderByExpressions().isEmpty()) {
-                int parallelLevel2 = CostUtil.estimateParallelLevel(
-                        delegate instanceof ScanPlan, getContext().getConnection().getQueryServices());
                 Cost orderByCost = CostUtil.estimateOrderByCost(
                         bytes, outputBytes, parallelLevel);
                 cost = cost.plus(orderByCost);