You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by ja...@apache.org on 2018/07/13 02:55:34 UTC
[2/2] phoenix git commit: Revert "PHOENIX-4790 Addendum to check that
query is a point lookup for delete not to run query"
Revert "PHOENIX-4790 Addendum to check that query is a point lookup for delete not to run query"
This reverts commit 288322678de7e443f959f55eaab946716ca517d8.
Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/164b2dac
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/164b2dac
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/164b2dac
Branch: refs/heads/master
Commit: 164b2dacb8b923d8fd5b4d9c2f4255fc99738ef1
Parents: 5d12cb5
Author: James Taylor <ja...@apache.org>
Authored: Thu Jul 12 19:52:30 2018 -0700
Committer: James Taylor <ja...@apache.org>
Committed: Thu Jul 12 19:53:22 2018 -0700
----------------------------------------------------------------------
.../src/main/java/org/apache/phoenix/compile/DeleteCompiler.java | 3 ---
1 file changed, 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/phoenix/blob/164b2dac/phoenix-core/src/main/java/org/apache/phoenix/compile/DeleteCompiler.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/compile/DeleteCompiler.java b/phoenix-core/src/main/java/org/apache/phoenix/compile/DeleteCompiler.java
index a214c24..78b2db9 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/compile/DeleteCompiler.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/compile/DeleteCompiler.java
@@ -541,9 +541,6 @@ public class DeleteCompiler {
Iterator<QueryPlan> iterator = queryPlans.iterator();
while (iterator.hasNext()) {
QueryPlan plan = iterator.next();
- // Must be a point lookup in order to not run a query since
- // we have to have the full key be enumerated.
- noQueryReqd &= plan.getContext().getScanRanges().isPointLookup();
if (plan.getTableRef().getTable().getIndexType() == IndexType.LOCAL) {
if (!plan.getContext().getDataColumns().isEmpty()) {
iterator.remove();