[ 
https://issues.apache.org/jira/browse/PHOENIX-933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14060094#comment-14060094
 ] 

ASF GitHub Bot commented on PHOENIX-933:
----------------------------------------

Github user chrajeshbabu commented on a diff in the pull request:

    https://github.com/apache/phoenix/pull/1#discussion_r14858124
  
    --- Diff: 
phoenix-core/src/main/java/org/apache/phoenix/iterate/SkipRangeParallelIteratorRegionSplitter.java
 ---
    @@ -54,7 +55,8 @@ protected 
SkipRangeParallelIteratorRegionSplitter(StatementContext context, Tabl
     
         public List<HRegionLocation> filterRegions(List<HRegionLocation> 
allTableRegions, final ScanRanges ranges) {
             Iterable<HRegionLocation> regions;
    -        if (ranges == ScanRanges.EVERYTHING) {
    +        if (ranges == ScanRanges.EVERYTHING
    --- End diff --
    
    Even with the change skip scan will be used James. The change is required 
because the key ranges generated by compiler won't be in the local index 
regions key range because local index rows have prefixed region start key 
extra. Without the change mostly no region will be selected for scanning.
    
    QueryIT#testSimpleInListStatement is the test case verifies the same. 
    Here is the explain query result.
    
    CLIENT PARALLEL 4-WAY SKIP SCAN ON 2 KEYS OVER _LOCAL_IDX_ATABLE [-32768,2] 
- [-32768,4]
        SERVER FILTER BY FIRST KEY ONLY AND ORGANIZATION_ID = '00D300000000XHP'
    CLIENT MERGE SORT


> Local index support to Phoenix
> ------------------------------
>
>                 Key: PHOENIX-933
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-933
>             Project: Phoenix
>          Issue Type: New Feature
>            Reporter: rajeshbabu
>
> Hindex(https://github.com/Huawei-Hadoop/hindex) provides local indexing 
> support to HBase. It stores region level index in a separate table, and 
> co-locates the user and index table regions with a custom load balancer.
> See http://goo.gl/phkhwC and http://goo.gl/EswlxC for more information. 
> This JIRA addresses the local indexing solution integration to phoenix.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to