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

ASF GitHub Bot commented on DRILL-474:
--------------------------------------

Github user adityakishore commented on the pull request:

    https://github.com/apache/incubator-drill/pull/40#issuecomment-40992347
  
    Updated pull request. Now the operator is parsed in Parser rather then in 
Lexer.


> 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