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

Jacques Nadeau commented on DRILL-474:
--------------------------------------

This fails tests on master.  The problem is 2+2 should be detected as add(2) 
(+) (2) but it is actually detected as (2) (+2).  Need to fix precedence that + 
is a binary operator before detecting as a sign.

> Long.MIN_VALUE is not parsed as BIGINT but as a Double
> ------------------------------------------------------
>
>                 Key: DRILL-474
>                 URL: https://issues.apache.org/jira/browse/DRILL-474
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Aditya Kishore
>            Assignee: Aditya Kishore
>
> A negative number in an expression is not parsed as a negative number rather 
> a function call negative(abs_value_literal).
> This invokes 
> {{org.apache.drill.common.expression.ValueExpressions.getNumericExpression(String,
>  ExpressionPosition)}} on the absolute literal value which uses 
> {{Long.parseLong(s)}} to convert the parsed literal to a long value. However, 
> {{9223372036854775808}} is a tad over the maximum +ve value that can be 
> stored in a long. This let the number parsed as Double in the fallback code.



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

Reply via email to