Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 93880F3CE for ; Mon, 25 Mar 2013 12:57:16 +0000 (UTC) Received: (qmail 22865 invoked by uid 500); 25 Mar 2013 12:57:16 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 22821 invoked by uid 500); 25 Mar 2013 12:57:16 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 22799 invoked by uid 99); 25 Mar 2013 12:57:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Mar 2013 12:57:15 +0000 Date: Mon, 25 Mar 2013 12:57:15 +0000 (UTC) From: "Sylvain Lebresne (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-5341) Select writetime Exception when data doesn't exist MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-5341?page=3Dcom.atlas= sian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D= 13612592#comment-13612592 ]=20 Sylvain Lebresne commented on CASSANDRA-5341: --------------------------------------------- Cause this method is expected to be called for every CQL3 column of the res= ult set and this for every row, even if the result to return is 'null'. =20 > 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 =E2=80=9Cselect writetime=E2=80=9D on a empty column, = I have an Exception.=20 > For example :=20 > Create table test (id int, value int, value2 int, primary key (id));=09 > INSERT INTO test (id, value ) VALUES ( 1,100) ; > select * from test where id =3D1;=20 > =3D=3D> > id | value | value2 > ----+-------+-------- > 1 | 100 | null=09 > It=E2=80=99s working. > select WRITETIME(value) from test where id =3D1;=20 > =3D=3D> > writetime(value) > ------------------ > 1363184789539000 > It=E2=80=99s working > select WRITETIME(value2) from test where id =3D1;=20 > =3D=3D>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 administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira