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

Sylvain Lebresne commented on CASSANDRA-5341:
---------------------------------------------

Cause this method is expected to be called for every CQL3 column of the result 
set and this for every row, even if the result to return is 'null'.
                
> Select writetime  Exception when  data doesn't exist
> ----------------------------------------------------
>
>                 Key: CASSANDRA-5341
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5341
>             Project: Cassandra
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 1.2.2
>            Reporter: julien campan
>            Assignee: Sylvain Lebresne
>            Priority: Minor
>             Fix For: 1.2.4
>
>         Attachments: 5341.txt
>
>
> Hi,
> When I try do to a “select writetime” on a empty column, I have an Exception. 
> For example : 
> Create table test (id  int, value int, value2 int, primary key (id)); 
> INSERT INTO test (id, value ) VALUES ( 1,100) ;
> select * from test where id =1; 
> ==>
>  id | value | value2
> ----+-------+--------
>   1 |   100 |   null  
> It’s working.
> select WRITETIME(value) from test where id =1; 
> ==>
>  writetime(value)
> ------------------
>  1363184789539000
> It’s working
> select WRITETIME(value2) from test where id =1; 
> ==>TSocket read 0 bytes
> I have an Exception.

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