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:40 UTC

[phoenix] branch 4.x updated: PHOENIX-6209 Remove unused estimateParallelLevel()

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

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


The following commit(s) were added to refs/heads/4.x by this push:
     new 2fec392  PHOENIX-6209 Remove unused estimateParallelLevel()
2fec392 is described below

commit 2fec392388259196a4a3528046f10ec5f5cd03b3
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 98d9576..71fb3fb 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);