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

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

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

    https://github.com/apache/phoenix/pull/67#discussion_r28373652
  
    --- Diff: phoenix-core/src/main/antlr3/PhoenixSQL.g ---
    @@ -967,9 +967,14 @@ NUMBER
         :   POSINTEGER
         ;
     
    -// Exponential format is not supported.
     DECIMAL
    --- End diff --
    
    While investigating ParseNodeFactory, it looks like all numbers are parsed 
as real numbers (big decimal), or whole numbers (slightly more logic to try to 
fit them into ints, Longs, or BigDecimals).  Just to clarify, you want me to 
create a new method in ParseNodeFactory to try to parse doubles, then update 
the Antlr tree to use that new method?


> Handle e notation for defining float/double
> -------------------------------------------
>
>                 Key: PHOENIX-1814
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1814
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: James Taylor
>            Assignee: Brian Esserlieu
>              Labels: Newbie
>
> We should allow a numeric literal to be defined with e notation for a 
> float/double like this: 
> {code}
> +1.5e-7
> 12E-5
> -.12345e+6789
> {code}



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

Reply via email to