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

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

OK, inserting it without apostrophes fails as you stated - I got it now; using 
apostrophes was quite "natural" for me, so I missed your point at first. Thanks.

(BTW: in cqlsh it works with apostrophes like in cli, so it seems to be a 
workaround now ;-) )

{noformat}cqlsh:tf> DESCRIBE COLUMNFAMILY test;

CREATE TABLE test (
  "KEY" text PRIMARY KEY,
  value_double double,
  value_float float
) WITH (...)


cqlsh:tf> INSERT INTO test (key, value_float, value_double) VALUES ('D', 
'-2.6034345E+38', '-2.6034345E+38'); 
cqlsh:tf> SELECT * FROM tf.test ;
 key | value_double | value_float
-----+--------------+-------------
   D |     -2.6e+38 |    -2.6e+38
(...)
{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

Reply via email to