You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by GitBox <gi...@apache.org> on 2021/03/06 20:55:32 UTC

[GitHub] [phoenix] lhofhansl commented on a change in pull request #1159: PHOENIX-6402 Allow using local indexes with uncovered columns in the WHERE clause.

lhofhansl commented on a change in pull request #1159:
URL: https://github.com/apache/phoenix/pull/1159#discussion_r588929957



##########
File path: phoenix-core/src/main/java/org/apache/phoenix/iterate/BaseResultIterators.java
##########
@@ -491,6 +476,22 @@ private static void optimizeProjection(StatementContext context, Scan scan, PTab
                 }
             }
         }
+        for (Entry<byte[], NavigableSet<byte[]>> entry : familyMap.entrySet()) {

Review comment:
       This is one of the bug fixes. Above we add columns and column families sometimes that we would miss here in the trackedColumnBitset as well as the column tracker.
   
   This showed in queries like ... WHERE (a,b) IN ((..., ...), (..., ...)) when 'a' is indexed by a local index and 'b' is included. I expected there are potential other scenarios where this is wrong.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org