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

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

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

    https://github.com/apache/phoenix/pull/34#discussion_r23973403
  
    --- Diff: 
phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
 ---
    @@ -630,6 +641,13 @@ private PTable getTable(RegionScanner scanner, long 
clientTimeStamp, long tableT
                     if (statsHTable != null) statsHTable.close();
                 }
             }
    +        // sort columns by ordinal position
    --- End diff --
    
    I had to add this because AlterTableIT.testDropIndexedColumn was failing 
for local indexes. 
    In  PTableImpl.init it looks like  allColumns is sorted, but pkColumns is 
not sorted. 
    Should I just move this into PTableImpl so that PK columns are sorted?


> Support functional indexes
> --------------------------
>
>                 Key: PHOENIX-514
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-514
>             Project: Phoenix
>          Issue Type: Task
>            Reporter: James Taylor
>            Assignee: Thomas D'Silva
>              Labels: enhancement
>
> Instead of only defining the set of columns from the data table that make up 
> an index, you should be able to use expressions.  For example:
>       CREATE INDEX upper_last_name_idx ON person (UPPER(last_name))
> Then in queries that use UPPER(last_name), we can replace them with column 
> references to the index table.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to