cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michał Michalski (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-4927) E notation is not implemented for floating point numbers.
Date Mon, 19 Nov 2012 16:51:58 GMT

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

Michał Michalski commented on CASSANDRA-4927:
---------------------------------------------

I (kind of) fixed it:

{noformat}cqlsh:test> INSERT INTO "Values" (key, value_double, value_float) VALUES ( 'E',
-2.6034E+38, -2.6034E+38);

cqlsh:test> SELECT * from "Values";

 key | value_double | value_float
-----+--------------+-------------
   E |  -2.6034e+38 | -2.6034e+38
{noformat}

But now my question is - can I test it somehow? Writing valid expression is one thing, but
I wonder if it's not going to break other statements - as Jonathan stated, '+' and '-' signs
are being used elsewhere so I can't be sure that there's no conflict with the rest of the
grammar? Or maybe I'm wrong and Antlr is able to discover (?) and report such problems somehow?
                
> E notation is not implemented for floating point numbers.
> ---------------------------------------------------------
>
>                 Key: CASSANDRA-4927
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4927
>             Project: Cassandra
>          Issue Type: Improvement
>    Affects Versions: 1.2.0 beta 1
>            Reporter: Krzysztof Cieslinski Cognitum
>            Priority: Minor
>             Fix For: 1.2.1
>
>         Attachments: cassandra-4927.txt
>
>
> 'E' notation is not implemented for floating point numbers.
> Inserting some float value like -2.6034345E+38 results in:
> ??Bad Request: line 1:123 mismatched input 'E' expecting ')'??

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message