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

Dave Hacker commented on PHOENIX-385:
-------------------------------------

No one using antlr actually supports it directly.  It is always treated as a  
unary operator which is what is currently done with the negate_expression in 
the grammar (its the only unary operator that we support).  I've fixed the -1.0 
issue by only using the MINUS_ONE constant if the value of the literal is 
cooercible to 1.  This still leaves handling MIN_LONG appropriately.  Like 
decimal  which uses BigDecimal we will likely have to store it as a BigInteger 
instead of a long and do a range check. 

> Support negative literal directly
> ---------------------------------
>
>                 Key: PHOENIX-385
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-385
>             Project: Phoenix
>          Issue Type: Task
>            Reporter: Raymond Liu
>            Assignee: Dave Hacker
>
> say in split on / Limit etc who use literal as input
> Negative value should be supported, at present, only positive number is 
> supported. Might not be true for Limit, but for other cases like split on 
> might need it.



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

Reply via email to