[
https://issues.apache.org/jira/browse/PHOENIX-1814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14495087#comment-14495087
]
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_r28379553
--- Diff: phoenix-core/src/main/antlr3/PhoenixSQL.g ---
@@ -967,9 +967,14 @@ NUMBER
: POSINTEGER
;
-// Exponential format is not supported.
DECIMAL
--- End diff --
All of those will work, and we capture 'e' and 'E' as well. The only one
that wont work is "+1.5e-7" (listed in the description of
https://issues.apache.org/jira/browse/PHOENIX-1814 as an example value). I
tested inserting regular numbers (non-exponential notation) with a '+' before
them and the value doesn't parse at all.
> 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)