You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Michał Michalski (JIRA)" <ji...@apache.org> on 2012/11/17 10:43:12 UTC

[jira] [Commented] (CASSANDRA-4927) E notation is not implemented for floating point numbers.

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

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

Could you provide some more information on how to reproduce this bug? I've tried to do it on tag cassandra-1.2.0-beta2 using cassandra-cli and I failed. I created column family with columns having validation_class FloatType and DoubleType and I tried to insert the value you provided:

{noformat}[default@test] set Values['B']['value_float'] = '-2.6034345E+38';
Value inserted.
Elapsed time: 3.26 msec(s).
[default@test] set Values['B']['value_double'] = '-2.6034345E+38';
Value inserted.
Elapsed time: 3.21 msec(s).
[default@test] list Values ;
Using default limit of 100
Using default column limit of 100
-------------------
RowKey: B
=> (column=value_double, value=-2.6034345E38, timestamp=1353144439969000)
=> (column=value_float, value=-2.6034345E38, timestamp=1353144432452000)

1 Row Returned.
Elapsed time: 13 msec(s).{noformat}

?
                
> 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
>
>
> '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