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

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

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

    https://github.com/apache/phoenix/pull/1#discussion_r14852129
  
    --- Diff: 
phoenix-core/src/it/java/org/apache/phoenix/end2end/index/MutableIndexIT.java 
---
    @@ -51,21 +51,38 @@ public static void doSetup() throws Exception {
             props.put(QueryServices.MAX_INTRA_REGION_PARALLELIZATION_ATTRIB, 
Integer.toString(1));
             // Forces server cache to be used
             props.put(QueryServices.INDEX_MUTATE_BATCH_SIZE_THRESHOLD_ATTRIB, 
Integer.toString(2));
    +        props.put(QueryServices.DROP_METADATA_ATTRIB, 
Boolean.toString(true));
             // Must update config before starting server
             startServer(getUrl(), new 
ReadOnlyProps(props.entrySet().iterator()));
         }
    -    
    +
         @Test
         public void testIndexWithNullableFixedWithCols() throws Exception {
    +        testIndexWithNullableFixedWithCols(false);
    +    }
    +    
    +    @Test
    +    public void testLocalIndexWithNullableFixedWithCols() throws Exception 
{
    +        testIndexWithNullableFixedWithCols(true);
    +    }
    +
    +    private void testIndexWithNullableFixedWithCols(boolean localIndex) 
throws Exception {
             Properties props = new Properties(TEST_PROPERTIES);
             Connection conn = DriverManager.getConnection(getUrl(), props);
             conn.setAutoCommit(false);
             try {
                 createTestTable();
                 populateTestTable();
    -            String ddl = "CREATE INDEX " + INDEX_TABLE_NAME + " ON " + 
DATA_TABLE_FULL_NAME
    -                    + " (char_col1 ASC, int_col1 ASC)"
    -                    + " INCLUDE (long_col1, long_col2)";
    +            String ddl = null;
    +            if(localIndex){
    +                ddl = "CREATE INDEX " + INDEX_TABLE_NAME + " ON " + 
DATA_TABLE_FULL_NAME
    --- End diff --
    
    Looks like the if and the else branch match. If that's expected/correct, 
can you get rid of the if statement?


> 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