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

Jonathan Ellis commented on CASSANDRA-5341:
-------------------------------------------

Why are we adding null columns in the first place?
                
> 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