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

Thomas D'Silva commented on PHOENIX-514:
----------------------------------------

James,

Thanks a lot for the detailed spec. 
I had a question about whether we need to store the expression as a VARCHAR in 
SYSTEM.CATALOG or if I can just store the serialized value and expression 
ordinal and then deserialize using 

{code}
expression = ExpressionType.values()[expressionOrdinal].newInstance();         
expression.readFields()
{code}

Will this also handle compound expressions since BaseCompoundExpression.write 
would serialize them correctly?

> 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